safecss_filter_attr_allow_css
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'safecss_filter_attr_allow_css', bool $allow_css, string $css_test_string )
Описание
Позволяет разработчикам определить, следует ли разрешить или отбросить фрагмент CSS.
По умолчанию значение будет false, если фрагмент содержит \ ( & } = или комментарии.
Верните true, чтобы разрешить включение фрагмента CSS в вывод.
Оригинал (английский)
Enables developers to determine whether a section of CSS should be allowed or discarded.
By default, the value will be false if the part contains \ ( & } = or comments.
Return true to allow the CSS part to be included in the output.
Фильтруемое значение
Параметры
$allow_css
bool
обязательный
$css_test_string
string
обязательный
Исходный код
wp-includes/kses.php:2872
$allow_css = apply_filters( 'safecss_filter_attr_allow_css', $allow_css, $css_test_string );
История изменений
| Версия | Описание |
|---|---|
| 5.5.0 | Introduced. |

