WP_Roles::get_site_id
Gets the ID of the site for which roles are currently initialized.
Метод класса: WP_Roles{}
Хуков нет.
Возвращает
int. Site ID.
Использование
global $wp_roles; $wp_roles->get_site_id();
Список изменений
| С версии 4.9.0 | Введена. |
Код WP_Roles::get_site_id() WP Roles::get site id WP 7.0.2
public function get_site_id() {
return $this->site_id;
}