get_plugin_page_hook( string $plugin_page, string $parent_page )


Description Description


Parameters Parameters

$plugin_page

(string) (Required)

$parent_page

(string) (Required)


Top ↑

Return Return

(string|null)


Top ↑

Source Source

File: wp-admin/includes/plugin.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.