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

  1. if ( !function_exists( 'is_plugin_page' ) ) { 
  2. require_once ABSPATH . WPINC . '/deprecated.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = is_plugin_page(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/deprecated.php  
  1. function is_plugin_page() { 
  2. _deprecated_function( __FUNCTION__, '3.1.0' ); 
  3.  
  4. global $plugin_page; 
  5.  
  6. if ( isset($plugin_page) ) 
  7. return true; 
  8.  
  9. return false;