get_plugin_page_hookname [ WordPress Function ]
get_plugin_page_hookname ( $plugin_page, $parent_page )
| Defined at: |
|
Soorgelijke functies: get_plugin_page_hook, get_plugin_data, plugin_basename, get_plugin_updates, is_plugin_page
No description yet.
Source
<?php
function get_plugin_page_hookname( $plugin_page, $parent_page ) {
global $admin_page_hooks;
$parent = get_admin_page_parent( $parent_page );
$page_type = 'admin';
if ( empty ( $parent_page ) || 'admin.php' == $parent_page || isset( $admin_page_hooks[$plugin_page] ) ) {
if ( isset( $admin_page_hooks[$plugin_page] ) )
$page_type = 'toplevel';
else
if ( isset( $admin_page_hooks[$parent] ))
$page_type = $admin_page_hooks[$parent];
} else if ( isset( $admin_page_hooks[$parent] ) ) {
$page_type = $admin_page_hooks[$parent];
}
$plugin_name = preg_replace( '!\.php!', '', $plugin_page );
return $page_type . '_page_' . $plugin_name;
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- get_plugin_page_hookname | A HitchHackers guide through ...
Feb 12, 2011 ... /wp-admin/includes/plugin.php(line 1491) · PHPdoc. Definition: function get_plugin_page_hookname( $plugin_page, $parent_page ) {} ...
hitchhackerguide.com - WordPress › Support » Tags — get_plugin_page_hookname
Username or Email Address Password (forgot?) Register · WordPress › Support » get_plugin_page_hookname. Tag: get_plugin_page_hookname Add New » ...
wordpress.org - #18857 (get_plugin_page_hookname uses menu_title to construct ...
get_plugin_page_hookname uses menu_title to construct subpage load-hooks ... The reason seems to be that the get_plugin_page_hookname function uses ...
core.trac.wordpress.org - get_plugin_page_hookname (WordPress Function) - WPSeek.com
WordPress lookup for get_plugin_page_hookname, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com