WPSEO_Import_Squirrly::detect
Detects whether there is post meta data to import.
Метод класса: WPSEO_Import_Squirrly{}
Хуков нет.
Возвращает
true|false. Boolean indicating whether there is something to import.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->detect();
Код WPSEO_Import_Squirrly::detect() WPSEO Import Squirrly::detect Yoast 27.8
protected function detect() {
global $wpdb;
$result = $wpdb->get_var( "SHOW TABLES LIKE '{$this->table_name}'" );
if ( is_wp_error( $result ) || $result === null ) {
return false;
}
return true;
}