WP_User::get_site_id()

Gets the ID of the site for which the user’s capabilities are currently initialized.


Return

(int) Site ID.


Source

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

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

Changelog

Changelog
Version Description
WP-4.9.0 Introduced.