WP_User::get_site_id()
Gets the ID of the site for which the user's capabilities are currently initialized.
Метод класса: WP_User{}
Хуков нет.
Возвращает
int
. Site ID.
Использование
$WP_User = new WP_User(); $WP_User->get_site_id();
Список изменений
С версии 4.9.0 | Введена. |
Код WP_User::get_site_id() WP User::get site id WP 6.5.2
public function get_site_id() { return $this->site_id; }