WPSEO_Database_Proxy::get_table_prefix
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() WPSEO Database Proxy::get table prefix Yoast 26.9
protected function get_table_prefix() {
if ( $this->is_multisite_table ) {
return $this->database->base_prefix;
}
return $this->database->get_blog_prefix();
}