WP_Locale_Switcher::get_switched_user_id(): int|false In this article Table of ContentsReturn Source Changelog ↑ Back to top Returns the user ID related to the currently switched locale. Return int|false User ID if set and if the locale has been switched, false otherwise. Source public function get_switched_user_id() { $entry = end( $this->stack ); if ( $entry ) { return $entry[1]; } return false; } View all references View on Trac View on GitHub Changelog VersionDescription6.2.0Introduced. User Contributed Notes You must log in before being able to contribute a note or feedback.
User Contributed Notes
You must log in before being able to contribute a note or feedback.