wp_register_duotone_support( WP_Block_Type $block_type )

In this article

This function has been deprecated. Use WP_Duotone::register_duotone_support() instead.

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

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

VersionDescription
6.3.0Use WP_Duotone::register_duotone_support() instead.
5.8.0Introduced.

User Contributed Notes

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