WPSEO_Database_Proxy::register_table()protectedYoast 1.0

Registers the table with WordPress.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

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

Код WPSEO_Database_Proxy::register_table() Yoast 22.4

protected function register_table() {
	$table_name      = $this->table_name;
	$full_table_name = $this->get_table_name();

	$this->database->$table_name = $full_table_name;

	if ( $this->is_multisite_table ) {
		$this->database->ms_global_tables[] = $table_name;
		return;
	}

	$this->database->tables[] = $table_name;
}