WP_Duotone::get_filter_id()private staticWP 6.3.0

Get the ID of the duotone filter.

Example output: wp-duotone-blue-orange

Method of the class: WP_Duotone{}

No Hooks.

Returns

String. The ID of the duotone filter.

Usage

$result = WP_Duotone::get_filter_id( $slug );
$slug(string) (required)
The slug of the duotone preset.

Changelog

Since 6.3.0 Introduced.

WP_Duotone::get_filter_id() code WP 6.8.1

private static function get_filter_id( $slug ) {
	return "wp-duotone-$slug";
}