wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_get_duotone_filter_id › WordPress Function

Since5.9.1
Deprecatedn/a
wp_get_duotone_filter_id ( $preset )
Access:
  • private
Parameters:
  • (array) $preset Duotone preset value as seen in theme.json.
    Required: Yes
Returns:
  • (string) Duotone filter CSS id.
Defined at:
Codex:

Returns the prefixed id for the duotone filter for use as a CSS id.



Source

function wp_get_duotone_filter_id( $preset ) {
	if ( ! isset( $preset['slug'] ) ) {
		return '';
	}

	return 'wp-duotone-' . $preset['slug'];
}