WP_Duotone::get_filter_svg_from_preset
Устарела с версии 6.3.0. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Gets the SVG for the duotone filter definition from a preset.
Exported for the deprecated function wp_get_duotone_filter_property().
Метод класса: WP_Duotone{}
Хуков нет.
Возвращает
Строку. The SVG for the filter definition.
Использование
$result = WP_Duotone::get_filter_svg_from_preset( $preset );
- $preset(массив) (обязательный)
- The duotone preset.
Список изменений
| С версии 6.3.0 | Введена. |
| Устарела с | 6.3.0 |
Код WP_Duotone::get_filter_svg_from_preset() WP Duotone::get filter svg from preset WP 6.8.3
public static function get_filter_svg_from_preset( $preset ) {
_deprecated_function( __FUNCTION__, '6.3.0' );
$filter_id = self::get_filter_id_from_preset( $preset );
return self::get_filter_svg( $filter_id, $preset['colors'] );
}