WP_Roles::get_site_id()
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() WP Roles::get site id code WP 6.8
public function get_site_id() { return $this->site_id; }