force_filtered_html_on_import хук-фильтрWP 3.1.0

Filters whether to filter imported data through kses on import.

Multisite uses this hook to filter all data through kses by default, as a super administrator may be assisting an untrusted user.

Использование

add_filter( 'force_filtered_html_on_import', 'wp_kama_force_filtered_html_on_import_filter' );

/**
 * Function for `force_filtered_html_on_import` filter-hook.
 * 
 * @param bool $force Whether to force data to be filtered through kses.
 *
 * @return bool
 */
function wp_kama_force_filtered_html_on_import_filter( $force ){

	// filter...
	return $force;
}
$force(true|false)
Whether to force data to be filtered through kses.
По умолчанию: false

Список изменений

С версии 3.1.0 Введена.

Где вызывается хук

В файле: /wp-admin/admin.php
force_filtered_html_on_import
wp-admin/admin.php 360
if ( apply_filters( 'force_filtered_html_on_import', false ) ) {

Где используется хук в WordPress

wp-includes/default-filters.php 623
add_filter( 'force_filtered_html_on_import', '_wp_footnotes_force_filtered_html_on_import_filter', 999 );
wp-includes/ms-default-filters.php 117
add_filter( 'force_filtered_html_on_import', '__return_true' );