Switch language

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




is_user_admin [ WordPress Function ]

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



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

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

Source


<?php
function is_user_admin() {
    if ( 
defined'WP_USER_ADMIN' ) )
        return 
WP_USER_ADMIN;
    return 
false;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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