Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_plugin_page_hookname [ WordPress Function ]

get_plugin_page_hookname ( $plugin_page, $parent_page )
Defined at:



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

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics