wp_render_duotone_support( string $block_content, array $block ): string

In this article

This function has been deprecated. Use WP_Duotone::render_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.

Renders out the duotone stylesheet and SVG.

Parameters

$block_contentstringrequired
Rendered block content.
$blockarrayrequired
Block object.

Return

string Filtered block content.

Source

function wp_render_duotone_support( $block_content, $block ) {
	_deprecated_function( __FUNCTION__, '6.3.0', 'WP_Duotone::render_duotone_support()' );
	$wp_block = new WP_Block( $block );
	return WP_Duotone::render_duotone_support( $block_content, $block, $wp_block );
}

Changelog

VersionDescription
6.3.0Use WP_Duotone::render_duotone_support() instead.
6.1.0Allow unset for preset colors.
5.8.0Introduced.

User Contributed Notes

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