WP_Roles::get_site_id() WordPress Method
The WP_Roles::get_site_id() method is used to get the id of the site for which the roles and capabilities are being retrieved.
WP_Roles::get_site_id() #
Gets the ID of the site for which roles are currently initialized.
Return
(int) Site ID.
Source
File: wp-includes/class-wp-roles.php
public function get_site_id() {
return $this->site_id;
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 4.9.0 | Introduced. |