W3cubDocs

/WordPress

wp_register_duotone_support( WP_Block_Type $block_type )

Registers the style and colors block attributes for block types that support it.

Parameters

$block_typeWP_Block_Typerequired
Block Type.

Source

function wp_register_duotone_support( $block_type ) {
	_deprecated_function( __FUNCTION__, '6.3.0', 'WP_Duotone::register_duotone_support()' );
	return WP_Duotone::register_duotone_support( $block_type );
}

Changelog

Version Description
6.3.0 Use WP_Duotone::register_duotone_support() instead.
5.8.0 Introduced.

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