WP_Block_Patterns_Registry::get_all_registered() – Retrieves all registered block patterns.

You appear to be a bot. Output may be restricted

Description

Retrieves all registered block patterns.

Usage

$array[] = WP_Block_Patterns_Registry::get_all_registered( $outside_init_only );

Parameters

$outside_init_only
( bool ) optional – Return only patterns registered outside the init action.

Returns

array[] Array of arrays containing the registered block patterns properties, and per style.

Source

File name: wordpress/wp-includes/class-wp-block-patterns-registry.php
Lines:

1 to 7 of 7
  public function get_all_registered( $outside_init_only = false ) {
    return array_values(
      $outside_init_only
        ? $this->registered_patterns_outside_init
        : $this->registered_patterns
    );
  }
 

 View on GitHub View on Trac