wpseek.com
				Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
			wp_global_styles_render_svg_filters is deprecated since version 6.3.0!
Alternative: SVG
Alternative: SVG
wp_global_styles_render_svg_filters › WordPress Function
Seit5.9.1
Veraltet6.3.0
› wp_global_styles_render_svg_filters ( Keine Parameter )
| Definiert in: | 
 | 
| Codex: | 
Renders the SVG filters supplied by theme.json.
Note that this doesn't render the per-block user-defined filters which are handled by wp_render_duotone_support, but it should be rendered before the filtered content in the body to satisfy Safari's rendering quirks.Quellcode
function wp_global_styles_render_svg_filters() {
	_deprecated_function( __FUNCTION__, '6.3.0' );
	/*
	 * When calling via the in_admin_header action, we only want to render the
	 * SVGs on block editor pages.
	 */
	if (
		is_admin() &&
		! get_current_screen()->is_block_editor()
	) {
		return;
	}
	$filters = wp_get_global_styles_svg_filters();
	if ( ! empty( $filters ) ) {
		echo $filters;
	}
}