wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_render_duotone_support › WordPress Function

Since5.8.0
Deprecated6.3.0
wp_render_duotone_support ( $block_content, $block )
Access:
  • private
Parameters: (2)
  • (string) $block_content Rendered block content.
    Required: Yes
  • (array) $block Block object.
    Required: Yes
Returns:
  • (string) Filtered block content.
Defined at:
Codex:
Change Log:
  • 6.1.0

Renders out the duotone stylesheet and SVG.



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