W3cubDocs

/WordPress

WP_Duotone::get_filter_url( string $filter_id ): string

Get the URL for a duotone filter.

Description

Example output: url(#wp-duotone-blue-orange)

Parameters

$filter_idstringrequired
The ID of the filter.

Return

string The URL for the duotone filter.

Source

private static function get_filter_url( $filter_id ) {
	return "url(#$filter_id)";
}

Changelog

Version Description
6.3.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_duotone/get_filter_url