WP_User::get_site_id()

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


Description Description


Return Return

(int) Site ID.


Top ↑

Source Source

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

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

Top ↑

Changelog Changelog

Changelog
Version Description
4.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.