WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/is plugin page

Notice: is_plugin_page is deprecated since version 3.1 with no alternative available.

Contents

Description

Returns true when the current request is for a plugin page in the administration panel. For example, if the request is for "http://www.example.com/wp-admin/edit.php?page=some_plugin.php", this will return true.

As of version 2.6, this appears to key off of the "page" URL parameter and is based on the variable $plugin_page, set in wp-admin/admin.php.

Usage

<?php is_plugin_page(); ?>

Parameters

Return Values

(boolean) 
True on success, false on failure.

Examples

Notes

Change Log

Since: 1.5.0

Source File

is_plugin_page() is located in wp-includes/functions.php.

As of version 2.6, this is defined in wp-includes/query.php.

Related

See also index of Function Reference and index of Template Tags.