WP_Roles::get_site_id()publicWP 4.9.0

Gets the ID of the site for which roles are currently initialized.

Method of the class: WP_Roles{}

No Hooks.

Return

Int. Site ID.

Usage

global $wp_roles;
$wp_roles->get_site_id();

Changelog

Since 4.9.0 Introduced.

WP_Roles::get_site_id() code WP 6.1.1

public function get_site_id() {
	return $this->site_id;
}