WP_Duotone::get_filter_url()private staticWP 6.3.0

Get the URL for a duotone filter.

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

Method of the class: WP_Duotone{}

No Hooks.

Return

String. The URL for the duotone filter.

Usage

$result = WP_Duotone::get_filter_url( $filter_id );
$filter_id(string) (required)
The ID of the filter.

Changelog

Since 6.3.0 Introduced.

WP_Duotone::get_filter_url() code WP 6.7.2

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