Switch language

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




is_blog_admin [ WordPress Function ]

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



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

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

Source


<?php
function is_blog_admin() {
    if ( 
defined'WP_BLOG_ADMIN' ) )
        return 
WP_BLOG_ADMIN;
    return 
false;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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