WP_Block_Patterns_Registry::get_instance() – Utility method to retrieve the main instance of the class.
You appear to be a bot. Output may be restricted
Description
Utility method to retrieve the main instance of the class.
The instance will be created if it does not exist yet.
Usage
$WP_Block_Patterns_Registry = WP_Block_Patterns_Registry::get_instance();
Parameters
Returns
WP_Block_Patterns_Registry The main instance.
Source
File name: wordpress/wp-includes/class-wp-block-patterns-registry.php
Lines:
1 to 7 of 7
public static function get_instance() { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; }