Title: force_filtered_html_on_import
Published: April 25, 2014
Last modified: August 20, 2026

---

# apply_filters( ‘force_filtered_html_on_import’, bool $force )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/force_filtered_html_on_import/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/force_filtered_html_on_import/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/force_filtered_html_on_import/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/hooks/force_filtered_html_on_import/?output_format=md#changelog)

Filters whether to filter imported data through kses on import.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/force_filtered_html_on_import/?output_format=md#description)󠁿

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

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/force_filtered_html_on_import/?output_format=md#parameters)󠁿

 `$force`bool

Whether to force data to be filtered through kses. Default false.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/force_filtered_html_on_import/?output_format=md#source)󠁿

    ```php
    if ( apply_filters( 'force_filtered_html_on_import', false ) ) {
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/admin.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-admin/admin.php#L365)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/admin.php#L365-L365)

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/force_filtered_html_on_import/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.1.0](https://developer.wordpress.org/reference/since/3.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fforce_filtered_html_on_import%2F)
before being able to contribute a note or feedback.