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.

Return

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.5.4

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