Title: wp_register_duotone_support
Published: August 8, 2023
Last modified: May 20, 2026

---

# wp_register_duotone_support( WP_Block_Type $block_type )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/wp_register_duotone_support/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/functions/wp_register_duotone_support/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/wp_register_duotone_support/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/wp_register_duotone_support/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/wp_register_duotone_support/?output_format=md#wp--skip-link--target)

This function has been deprecated since 6.3.0. 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 by core. It is listed here for completeness.

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

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/wp_register_duotone_support/?output_format=md#parameters)󠁿

 `$block_type`[WP_Block_Type](https://developer.wordpress.org/reference/classes/wp_block_type/)
required

Block Type.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/wp_register_duotone_support/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/deprecated.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/deprecated.php#L5214)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/deprecated.php#L5214-L5217)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/wp_register_duotone_support/?output_format=md#related)󠁿

| Uses | Description | 
| [WP_Duotone::register_duotone_support()](https://developer.wordpress.org/reference/classes/wp_duotone/register_duotone_support/)`wp-includes/class-wp-duotone.php` |

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

  | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/wp_register_duotone_support/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.3.0](https://developer.wordpress.org/reference/since/6.3.0/) | Deprecated. Use [WP_Duotone::register_duotone_support()](https://developer.wordpress.org/reference/classes/wp_duotone/register_duotone_support/) instead. | 
| [5.8.0](https://developer.wordpress.org/reference/since/5.8.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fwp_register_duotone_support%2F)
before being able to contribute a note or feedback.