Switch language

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




is_network_admin [ WordPress Function ]

is_network_admin ( No parameters )
Returns:
  • (bool) True if inside WordPress network administration pages.
Defined at:



Whether the current request is for a network admin screen /wp-admin/network/

Does not inform on whether the user is a network admin! Use capability checks to tell if the user should be accessing a section or not.

Source


<?php
function is_network_admin() {
    if ( 
defined'WP_NETWORK_ADMIN' ) )
        return 
WP_NETWORK_ADMIN;
    return 
false;
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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