is_plugin_page
Is the current admin page generated by a plugin?.
Description
is_plugin_page();
Use global $plugin_page
and/or get_plugin_page_hookname(…)
hooks.
Usage
if ( !function_exists( 'is_plugin_page' ) ) { require_once ABSPATH . WPINC . '/deprecated.php'; } // NOTICE! Understand what this does before running. $result = is_plugin_page();
Defined (1)
The function is defined in the following location(s).
- /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;
- }