Directory

get_block_type_variations – Hook | Developer.WordPress.org

apply_filters( ‘get_block_type_variations’, array $variations, WP_Block_Type $block_type )

In this article

Filters the registered variations for a block type.

Parameters

$variationsarray
Array of registered variations for a block type.
$block_typeWP_Block_Type
The full block type object.

Source

return apply_filters( 'get_block_type_variations', $this->variations, $this );

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.