WordPress at Your Fingertips
function is not described

get_plugin_page_hook() WP 1.5.0

Gets the hook attached to the administrative page of a plugin.

No Hooks.

Return

String|null. Hook attached to the plugin page, null otherwise.

Usage

get_plugin_page_hook( $plugin_page, $parent_page );
$plugin_page(string) (required)
The slug name of the plugin page.
$parent_page(string) (required)
The slug name for the parent menu (or the file name of a standard WordPress admin page).

Changelog

Since 1.5.0 Introduced.

Code of get_plugin_page_hook() WP 5.8.2

function get_plugin_page_hook( $plugin_page, $parent_page ) {
	$hook = get_plugin_page_hookname( $plugin_page, $parent_page );
	if ( has_action( $hook ) ) {
		return $hook;
	} else {
		return null;
	}
}