'WPSEO_VERSION', 'Rank Math' => 'RANK_MATH_VERSION', 'All in One SEO' => 'AIOSEO_VERSION', 'SEOPress' => 'SEOPRESS_VERSION', 'Slim SEO' => 'SLIM_SEO_VERSION', ); public static function detect(): ?string { foreach ( self::known_plugins() as $name => $constant ) { if ( defined( $constant ) ) { return $name; } } return null; } public static function has_conflict(): bool { return null !== self::detect(); } /** * @return array */ private static function known_plugins(): array { /** * Filters the list of "plugin name => defined constant" pairs used to detect * other active SEO plugins that would conflict with Acez SEO's own output. * * @param array $known_plugins */ return (array) apply_filters( 'acez_seo_known_seo_plugins', self::KNOWN_PLUGINS ); } }