wp-includes/class-wp-block-type.php:17Core class representing a block type.
Every hook that fires from inside WP_Block_Type, in the order it appears in the class, grouped by the method that fires it.
$api_versionintpublic$namestringpublic$titlestringpublic$categorystring|nullpublic$parentstring[]|nullpublic$ancestorstring[]|nullpublic$allowed_blocksstring[]|nullpublic$iconstring|nullpublic$descriptionstringpublic$keywordsstring[]public$textdomainstring|nullpublic$stylesarraypublic$variationsarray[]|nullprivate$variation_callbackcallable|nullpublic$selectorsarraypublic$supportsarray|nullpublic$examplearray|nullpublic$render_callbackcallablepublic$attributesarray|nullpublic$uses_contextstring[]private$provides_contextstring[]|nullpublic$block_hooksstring[]public$editor_script_handlesstring[]public$script_handlesstring[]public$view_script_handlesstring[]public$view_script_module_idsstring[]public$editor_style_handlesstring[]public$style_handlesstring[]public$view_style_handlesstring[]public$deprecated_propertiesstring[]private#[AllowDynamicProperties]class WP_Block_Type { /** * Block API version. * * @since 5.6.0 * @var int */ public $api_version = 1; /** * Block type key. * * @since 5.0.0 * @var string */ public $name; /** * Human-readable block type label. * * @since 5.5.0 * @var string */ public $title = ''; /** * Block type category classification, used in search interfaces * to arrange block types by category. * * @since 5.5.0 * @var string|null */ public $category = null; /** * Setting parent lets a block require that it is only available * when nested within the specified blocks. * * @since 5.5.0 * @var string[]|null */ public $parent = null; /** * Setting ancestor makes a block available only inside the specified * block types at any position of the ancestor's block subtree. * * @since 6.0.0 * @var string[]|null */ public $ancestor = null; /** * Limits which block types can be inserted as children of this block type. * * @since 6.5.0 * @var string[]|null */ public $allowed_blocks = null; /** * Block type icon. * * @since 5.5.0 * @var string|null */ public $icon = null; /** * A detailed block type description. * * @since 5.5.0 * @var string */ public $description = ''; /** * Additional keywords to produce block type as resultIntroduced in 5.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/class-wp-block-type.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.