WP_Duotone::get_filter_id
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() WP Duotone::get filter id code WP 7.0
private static function get_filter_id( $slug ) {
return "wp-duotone-$slug";
}