WP_Screen::in_admin

SummerySummery

Indicates whether the screen is in a particular admin

Syntax

WP_Screen::in_admin( string $admin = null )

ParametersParameters

$admin

(string) (Optional) The admin to check against (network | user | site). If empty any of the three admins will result in true.

Default value: null

ReturnReturn

(bool) True if the screen is in the indicated admin, false otherwise.

SourceSource

File: wp-admin/includes/class-wp-screen.php


			

ChangelogChangelog

Changelog
Version Description
3.5.0 Introduced.
Scroll to Top