Used By
| Used By | Description |
|---|---|
| wp-includes/class-wp-block-patterns-registry.php: register_block_pattern() | Registers a new pattern. |
| wp-includes/class-wp-block-patterns-registry.php: unregister_block_pattern() | Unregisters a pattern. |
Utility method to retrieve the main instance of the class.
The instance will be created if it does not exist yet.
(WP_Block_Patterns_Registry) The main instance.
File: wp-includes/class-wp-block-patterns-registry.php
public static function get_instance() {
if ( null === self::$instance ) {
self::$instance = new self();
}
return self::$instance;
} | Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_block_patterns_registry/get_instance