is_blog_admin()
最后更新于:2021-11-27 08:20:20
is_blog_admin()Whether the current request is for a site’s administrative interface.
响应
(bool) True if inside GeChiUI blog administration pages.
源文件
文件: gc-includes/load.php
function is_blog_admin() {
if ( isset( $GLOBALS['current_screen'] ) ) {
return $GLOBALS['current_screen']->in_admin( 'site' );
} elseif ( defined( 'GC_BLOG_ADMIN' ) ) {
return GC_BLOG_ADMIN;
}
return false;
}