W3cubDocs

/WordPress

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

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

Version Description
6.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_block_type_variations