wp_register_duotone_support()WP 5.8.0

Deprecated from version 6.3.0. It is no longer supported and can be removed in future releases. Use WP_Duotone::register_duotone_support() instead.

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

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Return

null. Nothing (null).

Usage

wp_register_duotone_support( $block_type );
$block_type(WP_Block_Type) (required)
Block Type.

Changelog

Since 5.8.0 Introduced.
Deprecated since 6.3.0 Use WP_Duotone::register_duotone_support() instead.

wp_register_duotone_support() code WP 6.5.2

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 );
}