WP_Theme_JSON::get_custom_templates(): array

In this article

Returns the page templates of the active theme.

Return

array

Source


$elements = static::get_block_element_selectors( $root_selector );
if ( ! empty( $elements ) ) {
	static::$blocks_metadata[ $block_name ]['elements'] = $elements;
}

// The block may or may not have a duotone selector.
$duotone_selector = wp_get_block_css_selector( $block_type, 'filter.duotone' );

// Keep backwards compatibility for support.color.__experimentalDuotone.
if ( null === $duotone_selector ) {
	$duotone_support = isset( $block_type->supports['color']['__experimentalDuotone'] )
		? $block_type->supports['color']['__experimentalDuotone']
		: null;

	if ( $duotone_support ) {

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

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