# wordpress-seo/18.5/src/deprecated/admin/extensions.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/18.5/code/src/deprecated/admin/extensions.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/18.5/raw/src/deprecated/admin/extensions.php
- Modified: 2020-11-03T11:56:12+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.5/code/src/deprecated/admin/extensions.php#L10-L20`.

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

// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- Reason: The class is deprecated.

/**
 * Represents the class that contains the list of possible extensions for Yoast SEO.
 *
 * @deprecated 15.4
 * @codeCoverageIgnore
 */
class WPSEO_Extensions {

	/**
	 * Checks if the plugin has been installed.
	 *
	 * @deprecated 15.4
	 * @codeCoverageIgnore
	 *
	 * @param string $extension The name of the plugin to check.
	 *
	 * @return bool Returns true when installed.
	 */
	public function is_installed( $extension ) {
		_deprecated_function( __METHOD__, 'WPSEO 15.4' );

		return false;
	}

	/**
	 * Invalidates the extension by removing its option.
	 *
	 * @deprecated 15.4
	 * @codeCoverageIgnore
	 *
	 * @param string $extension The extension to invalidate.
	 */
	public function invalidate( $extension ) {
		_deprecated_function( __METHOD__, 'WPSEO 15.4' );
	}

	/**
	 * Checks if the extension is valid.
	 *
	 * @deprecated 15.4
	 * @codeCoverageIgnore
	 *
	 * @param string $extension The extension to get the name for.
	 *
	 * @return bool Returns true when valid.
	 */
	public function is_valid( $extension ) {
		_deprecated_function( __METHOD__, 'WPSEO 15.4' );

		return false;
	}

	/**
	 * Returns the set extensions.
	 *
	 * @deprecated 15.4
	 * @codeCoverageIgnore
	 *
	 * @return array All the extension names.
	 */
	public function get() {
		_deprecated_function( __METHOD__, 'WPSEO 15.4' );

		return [];
	}
}
// phpcs:enable

```
