# wordpress-seo/18.1/src/deprecated/frontend/class-handle-404.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 18.1. 47 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/18.1/code/src/deprecated/frontend/class-handle-404.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/18.1/raw/src/deprecated/frontend/class-handle-404.php
- Modified: 2020-09-01T12:27:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/18.1/code/src/deprecated/frontend/class-handle-404.php#L10-L20`.

```php
<?php
/**
 * WPSEO plugin file.
 *
 * @package WPSEO\Frontend
 */

/**
 * Class WPSEO_Handle_404
 *
 * Handles intercepting requests.
 *
 * @deprecated 14.0
 *
 * @since 9.4
 */
class WPSEO_Handle_404 implements WPSEO_WordPress_Integration {

	/**
	 * Registers all hooks to WordPress.
	 *
	 * @codeCoverageIgnore
	 * @deprecated 14.0
	 *
	 * @return void
	 */
	public function register_hooks() {
		_deprecated_function( __METHOD__, 'WPSEO 14.0' );
	}

	/**
	 * Handle the 404 status code.
	 *
	 * @codeCoverageIgnore
	 * @deprecated 14.0
	 *
	 * @param bool $handled Whether we've handled the request.
	 *
	 * @return bool True if it's 404.
	 */
	public function handle_404( $handled ) {
		_deprecated_function( __METHOD__, 'WPSEO 14.0' );

		return $handled;
	}
}

```
