WordPress at a glance
функция не описана

wpdb::get_blog_prefix() public WP 3.0.0

Gets blog prefix.

It's a method of the class: wpdb{}

Хуков нет.

Возвращает

String. Blog prefix.

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

$wpdb = new wpdb();
$wpdb->get_blog_prefix( $blog_id );
$blog_id(int)
Optional.
Default: null

Changelog

Since 3.0.0 Introduced.

Код wpdb::get_blog_prefix() WP 5.5.1

<?php
public function get_blog_prefix( $blog_id = null ) {
	if ( is_multisite() ) {
		if ( null === $blog_id ) {
			$blog_id = $this->blogid;
		}

		$blog_id = (int) $blog_id;

		if ( defined( 'MULTISITE' ) && ( 0 === $blog_id || 1 === $blog_id ) ) {
			return $this->base_prefix;
		} else {
			return $this->base_prefix . $blog_id . '_';
		}
	} else {
		return $this->base_prefix;
	}
}