WPSEO_Database_Proxy::is_table_registered()protectedYoast 1.0

Checks if the table has been registered with WordPress.

Метод класса: WPSEO_Database_Proxy{}

Хуков нет.

Возвращает

true|false. True if the table is registered, false otherwise.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->is_table_registered();

Код WPSEO_Database_Proxy::is_table_registered() Yoast 22.4

protected function is_table_registered() {
	if ( $this->is_multisite_table ) {
		return in_array( $this->table_name, $this->database->ms_global_tables, true );
	}

	return in_array( $this->table_name, $this->database->tables, true );
}