_wp_footnotes_force_filtered_html_on_import_filter()
Initializes the filters for footnotes meta field when imported data should be filtered.
This filter is the last one being executed on force_filtered_html_on_import. If the input of the filter is true, it means we are in an import situation and should enable kses, independently of the user capabilities. So in that case we call _wp_footnotes_kses_init_filters().
Внутренняя функция — эта функция рассчитана на использование самим ядром. Не рекомендуется использовать эту функцию в своем коде.
Хуков нет.
Возвращает
Строку. Input argument of the filter.
Использование
_wp_footnotes_force_filtered_html_on_import_filter( $arg );
- $arg(строка) (обязательный)
- Input argument of the filter.
Список изменений
| С версии 6.3.2 | Введена. |
Код _wp_footnotes_force_filtered_html_on_import_filter() wp footnotes force filtered html on import filter WP 6.8.3
function _wp_footnotes_force_filtered_html_on_import_filter( $arg ) {
// If `force_filtered_html_on_import` is true, we need to init the global styles kses filters.
if ( $arg ) {
_wp_footnotes_kses_init_filters();
}
return $arg;
}