WP_Duotone::get_filter_id
Get the ID of the duotone filter.
Example output: wp-duotone-blue-orange
Метод класса: WP_Duotone{}
Хуков нет.
Возвращает
Строку. The ID of the duotone filter.
Использование
$result = WP_Duotone::get_filter_id( $slug );
- $slug(строка) (обязательный)
- The slug of the duotone preset.
Список изменений
| С версии 6.3.0 | Введена. |
Код WP_Duotone::get_filter_id() WP Duotone::get filter id WP 7.1
private static function get_filter_id( $slug ) {
return "wp-duotone-$slug";
}