A WordPress-centric search engine for devs and theme authors



get_plugin_page_hook ›

Since2.3.0
Deprecatedn/a
get_plugin_page_hook ( $plugin_page, $parent_page )
Parameters: (2)
  • (string) $plugin_page
    Required: Yes
  • (string) $parent_page
    Required: Yes
Returns:
  • (string|null)
Defined at:
Codex:

No description yet.



Source

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