wp-includes/class-wp-block.php:15Class representing a parsed instance of a block.
Every hook that fires from inside WP_Block, in the order it appears in the class, grouped by the method that fires it.
$parsed_blockarraypublic$namestringpublic$block_typeWP_Block_Typepublic$contextarraypublic$available_contextarrayprotected$registryWP_Block_Type_Registryprotected$inner_blocksWP_Block_Listpublic$inner_htmlstringpublic$inner_contentarraypublic#[AllowDynamicProperties]class WP_Block { /** * Original parsed array representation of block. * * @since 5.5.0 * @var array */ public $parsed_block; /** * Name of block. * * @example "core/paragraph" * * @since 5.5.0 * @var string */ public $name; /** * Block type associated with the instance. * * @since 5.5.0 * @var WP_Block_Type */ public $block_type; /** * Block context values. * * @since 5.5.0 * @var array */ public $context = array(); /** * All available context of the current hierarchy. * * @since 5.5.0 * @var array * @access protected */ protected $available_context = array(); /** * Block type registry. * * @since 5.9.0 * @var WP_Block_Type_Registry * @access protected */ protected $registry; /** * List of inner blocks (of this same class) * * @since 5.5.0 * @var WP_Block_List */ public $inner_blocks = array(); /** * Resultant HTML from inside block comment delimiters after removing inner * blocks. * * @example "...Just <!-- wp:test /--> testing..." -> "Just testing..." * * @since 5.5.0 * @var string */ public $inner_html = ''; /** * List of string fragments and null markers where inner blocks were found * * @example array( * 'inner_html' => 'BeforeInnerAfter', * 'inner_blocks' => array( block, block ),Introduced in 5.5.0. 3 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
get_block_bindings_processor() added.verified against sourcerefresh_context_dependents() added.verified against sourcerefresh_parsed_block_dependents() added.verified against sourcesrc/wp-includes/class-wp-block.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.