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 22.3
protected function detect() { global $wpdb; $result = $wpdb->get_var( "SHOW TABLES LIKE '{$this->table_name}'" ); if ( is_wp_error( $result ) || is_null( $result ) ) { return false; } return true; }