is_plugin_page

The timeline below displays how wordpress function is_plugin_page has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.5

/**
 * Determines whether the current admin page is generated by a plugin.
 *
 * Use global $plugin_page and/or get_plugin_page_hookname() hooks.
 *
 * For more information on this and similar theme functions, check out
 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
 * Conditional Tags} article in the Theme Developer Handbook.
 *
 * @since 1.5.0
 * @deprecated 3.1.0
 *
 * @global $plugin_page
 *
 * @return bool
 */
function is_plugin_page()
{
    _deprecated_function(__FUNCTION__, '3.1.0');
    global $plugin_page;
    if (isset($plugin_page)) {
        return true;
    }
    return false;
}

WordPress Version: 5.0

/**
 * Determines whether the current admin page is generated by a plugin.
 *
 * Use global $plugin_page and/or get_plugin_page_hookname() hooks.
 * 
 * For more information on this and similar theme functions, check out
 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 
 * Conditional Tags} article in the Theme Developer Handbook.
 * 
 * @since 1.5.0
 * @deprecated 3.1.0
 *
 * @global $plugin_page
 *
 * @return bool
 */
function is_plugin_page()
{
    _deprecated_function(__FUNCTION__, '3.1.0');
    global $plugin_page;
    if (isset($plugin_page)) {
        return true;
    }
    return false;
}

WordPress Version: 4.6

/**
 * Is the current admin page generated by a plugin?
 *
 * Use global $plugin_page and/or get_plugin_page_hookname() hooks.
 *
 * @since 1.5.0
 * @deprecated 3.1.0
 *
 * @global $plugin_page
 *
 * @return bool
 */
function is_plugin_page()
{
    _deprecated_function(__FUNCTION__, '3.1.0');
    global $plugin_page;
    if (isset($plugin_page)) {
        return true;
    }
    return false;
}

WordPress Version: 4.4

/**
 * Is the current admin page generated by a plugin?
 *
 * Use global $plugin_page and/or get_plugin_page_hookname() hooks.
 *
 * @since 1.5.0
 * @deprecated 3.1.0
 *
 * @global $plugin_page
 *
 * @return bool
 */
function is_plugin_page()
{
    _deprecated_function(__FUNCTION__, '3.1');
    global $plugin_page;
    if (isset($plugin_page)) {
        return true;
    }
    return false;
}

WordPress Version: 3.7

/**
 * Is the current admin page generated by a plugin?
 *
 * @since 1.5.0
 * @deprecated 3.1.0
 * @deprecated Use global $plugin_page and/or get_plugin_page_hookname() hooks.
 *
 * @global $plugin_page
 *
 * @return bool
 */
function is_plugin_page()
{
    _deprecated_function(__FUNCTION__, '3.1');
    global $plugin_page;
    if (isset($plugin_page)) {
        return true;
    }
    return false;
}