Warning: This function has been deprecated.
is_plugin_page() WordPress Function
The is_plugin_page() function is used to check if the currently loaded page is a plugin administration page. This function is useful for making sure that a particular plugin is only loaded on the pages that it needs to be, which can help improve performance. It can also be used to restrict access to a plugin's settings page to users with the appropriate capabilities.
is_plugin_page() #
Determines whether the current admin page is generated by a plugin.
Description
Use global $plugin_page and/or get_plugin_page_hookname() hooks.
For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook.
Return
(bool)
Source
File: wp-includes/deprecated.php
function is_plugin_page() {
_deprecated_function( __FUNCTION__, '3.1.0' );
global $plugin_page;
if ( isset($plugin_page) )
return true;
return false;
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 3.1.0 | This function has been deprecated. |
| 1.5.0 | Introduced. |