wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



get_plugin_page_hook › WordPress Function

Da1.5.0
Deprecaton/a
get_plugin_page_hook ( $plugin_page, $parent_page )
Parametri: (2)
  • (string) $plugin_page The slug name of the plugin page.
    Richiesto:
  • (string) $parent_page The slug name for the parent menu (or the file name of a standard WordPress admin page).
    Richiesto:
Ritorna:
  • (string|null) Hook attached to the plugin page, null otherwise.
Definito a:
Codex:

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



Sorgenti

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