wp_register_duotone_support()
Deprecated since 6.3.0. It is no longer supported and may 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.
Returns
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() wp register duotone support code WP 6.8.3
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 );
}