wp_render_duotone_filter_preset()
Устарела с версии 5.9.1. Больше не поддерживается и может быть удалена. Используйте
wp_get_duotone_filter_property() introduced in 5.9.1
.Renders the duotone filter SVG and returns the CSS filter property to reference the rendered SVG.
Хуков нет.
Возвращает
Строку
. Duotone CSS filter property.
Использование
wp_render_duotone_filter_preset( $preset );
- $preset(массив) (обязательный)
- Duotone preset value as seen in theme.json.
Заметки
- Смотрите: wp_get_duotone_filter_property()
Список изменений
С версии 5.9.0 | Введена. |
Устарела с 5.9.1 | Use wp_get_duotone_filter_property() introduced in 5.9.1. |
Код wp_render_duotone_filter_preset() wp render duotone filter preset WP 6.5.2
function wp_render_duotone_filter_preset( $preset ) { _deprecated_function( __FUNCTION__, '5.9.1', 'wp_get_duotone_filter_property()' ); return wp_get_duotone_filter_property( $preset ); }