defined( 'WPSEO_VERSION' ), 'Rank Math' => defined( 'RANK_MATH_VERSION' ) || class_exists( 'RankMath' ), 'All in One SEO' => defined( 'AIOSEO_VERSION' ) || function_exists( 'aioseo' ), 'SEOPress' => defined( 'SEOPRESS_VERSION' ), 'The SEO Framework' => defined( 'THE_SEO_FRAMEWORK_VERSION' ) || function_exists( 'the_seo_framework' ), ); $name = null; foreach ( $checks as $plugin => $active ) { if ( $active ) { $name = $plugin; break; } } /** * Filters the name of the active SEO plugin that prints its own social preview tags. * * @param string|null $name The plugin's name, or null when there's none. */ $name = apply_filters( 'refract_seo_plugin', $name ); return is_string( $name ) && '' !== $name ? $name : null; } }