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