// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- Reason: The class is deprecated.
* Represents the class that contains the available extensions for Yoast SEO.
class WPSEO_Extension_Manager {
* Adds an extension to the manager.
* @param string $extension_name The extension name.
* @param WPSEO_Extension|null $extension The extension value object.
public function add( $extension_name, WPSEO_Extension $extension = null ) {
_deprecated_function( __METHOD__, '15.4' );
* Removes an extension from the manager.
* @param string $extension_name The name of the extension to remove.
public function remove( $extension_name ) {
_deprecated_function( __METHOD__, '15.4' );
* Returns the extension for the given extension name.
* @param string $extension_name The name of the extension to get.
* @return WPSEO_Extension|null The extension object or null when it doesn't exist.
public function get( $extension_name ) {
_deprecated_function( __METHOD__, '15.4' );
* Returns all set extension.
* @return WPSEO_Extension[] Array with the extensions.
public function get_all() {
_deprecated_function( __METHOD__, '15.4' );
* Checks if the plugin is activated within My Yoast.
* @param string $extension_name The extension name to check.
* @return bool True when the plugin is activated.
public function is_activated( $extension_name ) {
_deprecated_function( __METHOD__, '15.4' );