WP_Block_Patterns_Registry::get_all_registered() WordPress Method
The WP_Block_Patterns_Registry::get_all_registered() method is used to retrieve all registered block patterns.
WP_Block_Patterns_Registry::get_all_registered( bool $outside_init_only = false ) #
Retrieves all registered block patterns.
Contents
Parameters
- $outside_init_only
(bool)(Optional)Return only patterns registered outside the
init
action.Default value: false
Return
(array[]) Array of arrays containing the registered block patterns properties, and per style.
Source
File: wp-includes/class-wp-block-patterns-registry.php
public function get_all_registered( $outside_init_only = false ) { return array_values( $outside_init_only ? $this->registered_patterns_outside_init : $this->registered_patterns ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |