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.


Top ↑

Source

File: wp-includes/class-wp-roles.php

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

Top ↑

Changelog

Changelog
VersionDescription
4.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.