|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/nandedex/www/wp-content/plugins/wordpress-seo/admin/import/ |
<?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\Import\Plugins
*/
/**
* Class WPSEO_Import_Plugins_Detector.
*
* Class with functionality to detect whether we should import from another SEO plugin.
*/
class WPSEO_Import_Plugins_Detector {
/**
* Plugins we need to import from.
*
* @var array
*/
public $needs_import = [];
/**
* Detects whether we need to import anything.
*
* @return void
*/
public function detect() {
foreach ( WPSEO_Plugin_Importers::get() as $importer_class ) {
$importer = new $importer_class();
$detect = new WPSEO_Import_Plugin( $importer, 'detect' );
if ( $detect->status->status ) {
$this->needs_import[ $importer_class ] = $importer->get_plugin_name();
}
}
}
}