wp_admin_page_exists


wp_admin_page_exists ( No parameters )

Returns:
  • (bool) True if the admin page exists, false otherwise.
Defined at:

Description

Determines whether the requested admin page is registered.This does not check whether the current user has the capability to access the page, only whether the page itself exists. Pages registered for a capability the current user lacks are recorded in the no-privilege registries rather than in $_registered_pages, and are still considered to exist so that the caller can report a permission error instead of a "page not found" error.

Related Functions

wp_admin_css, _wp_admin_bar_init, get_admin_page_parent, domain_exists, wp_admin_bar_edit_menu

Top Google Results

User discussions

wpseek mobile