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.


Top ↑

Return

(bool)


Top ↑

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;
}


Top ↑

Changelog

Changelog
VersionDescription
3.1.0This function has been deprecated.
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More