W3cubDocs

/WordPress

is_plugin_page()

This function has been deprecated.

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.

Return

(bool)

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

Changelog

Version Description
3.1.0 This function has been deprecated.
1.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/is_plugin_page