Title: WP_Customize_Manager::customize_preview_override_404_status
Published: September 4, 2014
Last modified: August 20, 2026

---

# WP_Customize_Manager::customize_preview_override_404_status()

## In this article

 * [Source](https://developer.wordpress.org/reference/classes/wp_customize_manager/customize_preview_override_404_status/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_customize_manager/customize_preview_override_404_status/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_customize_manager/customize_preview_override_404_status/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_customize_manager/customize_preview_override_404_status/?output_format=md#wp--skip-link--target)

This method has been deprecated since 4.7.0.

Prevents sending a 404 status when returning the response for the customize preview,
since it causes the jQuery Ajax to fail. Send 200 instead.

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

    ```php
    public function customize_preview_override_404_status() {
    	_deprecated_function( __METHOD__, '4.7.0' );
    }
    ```

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

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_customize_manager/customize_preview_override_404_status/?output_format=md#related)󠁿

| Uses | Description | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  |

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

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

## User Contributed Notes

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