W3cubDocs

/WordPress

WP_Duotone::get_filter_id( string $slug ): string

Get the ID of the duotone filter.

Description

Example output: wp-duotone-blue-orange

Parameters

$slugstringrequired
The slug of the duotone preset.

Return

string The ID of the duotone filter.

Source

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

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_id