WPSEO_Database_Proxy::get_table_prefix()protectedYoast 1.0

Returns the prefix to use for the table.

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

Хуков нет.

Возвращает

Строку. The table prefix depending on the database context.

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

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

Код WPSEO_Database_Proxy::get_table_prefix() Yoast 22.4

protected function get_table_prefix() {
	if ( $this->is_multisite_table ) {
		return $this->database->base_prefix;
	}

	return $this->database->get_blog_prefix();
}