if(is_super_admin() && is_network_admin()){
// do network admin only code
}
http://codex.wordpress.org/Function_Reference/is_super_admin
Related Posts:
- Setting up a wordpress network with third level domains
- Troubleshooting a “You do not have sufficient permissions to access this page” error
- multisite: use a virtual subfolder for subblogs
- WordPress 3 Multisite using subdomains.- DNS on Cpanel question
- Remove Site Name from register form – Multisite
- Set up collaborative site
- How to disable Multisite sign-up page?
- How To Provide Sub-Blogs Their Own Domain Names?
- Add role across network in multisite
- “You need a higher level of permission” after admin changing. Why?
- Advanced Custom Fields Multisite Upload/Imagery Issue [closed]
- Prevent user creating new users with specific roles
- What is the correct form action URL for network options pages?
- On Multisite: Loop to Show First Four Images of Recent Posts Across Network
- “Preview Changes” button doesn’t show changes for previously published posts/pages
- BuddyPress on Multisite [closed]
- Tax_query not working on multisite
- Migrating WPMS from apache to IIS7 causes Database Error
- Can I manage more wordpress sites with one wordpress administrator page? [closed]
- Add menu page on multisite
- Identical members roles on all sites in a multisite
- Fixing media links after importing to multisite
- WP-CLI can’t list posts
- htmll lang=”de” but admin page in English
- Multisite list all pages in site
- wordpress multisite subsite rewrite rules not working for videos
- What should I do? A multisite, a single website or many websites? [closed]
- Dissolve Multisite while making site #5 the main site?
- Can a user spread virus on my Multisite?
- Disabling outbound connectivity on web servers [closed]
- The wp_blogmeta table is not installed. Please run the network database upgrade
- NGINX rewrite rules for sub subdomains
- Link to Network Admin Broken After Switching to HTTPS
- Enable wildcard in a WordPress Multisite (Sub-Domains)
- Multi-site get_bloginfo(‘stylesheet_directory’) referring to sub-folder
- Temp URL Redirect Loop
- How to convert multi-site to single site
- Create a homepage like WordPress.com?
- Multisite with subfolders- can’t access main site- Error establishing a database connection
- WP MU Register User across all blogs
- get post id by $content (so by post content)
- Set default settings for all new multisites?
- How to disable a network enabled plugin on all sites, excepting on one?
- wp_mail() not sending email in multisite subdomain
- URL for images folder on Multisite
- Show content of other domain inside WordPress
- Moving a remote WordPress multisite installation to local
- Multisite redirecting wrong when without WWW
- Multisite, domain mapping and SSL?
- Will WP work on a multi-server environment? [duplicate]
- 3 blogs on one site with the same header menu?
- Get users registered 30 days ago(or more)
- Amazon EC2 and static page Caching (Multisite): How to enable Caching with multiple instances?
- How to check if page exists in Multisite?
- WordPress Multisite (sub-directory based), change subsite URL
- Migrating wordpress sites through localhost and ubuntu
- WordPress multisite with only two level of sub-domains?
- WordPress multisite with separate domains
- WordPress Multisite with subdomains on different domains
- Multisite are not creating folders for the subsites
- Display Selected themes to user in admin for wordpress multisite
- After setting up multisite on localhost, requests to localhost redirect to production domain
- How to use same theme in different languages?
- blog change and move to anther hosting for a multisite
- How to unindex a single blog in Multisite?
- Questions about MU database schema and how to list all blogs
- Multisite sites output on a single page
- multisite – unable to connect to network administration
- Restrict users of site 1 to login in site 2 in wordpress multisite
- “My Sites” incorrectly showing all network sites for all logged in users
- Unable to execute Ajax request, status code 400
- A database for each category?
- Redirect a WordPress Multisite url after it has been change to a new one
- Structure of multilingual and multiregional directory listing website for translation
- multisite 404 subfolder same name slug as site
- How to make the redirects right? IP to domain name folders
- What is the optimal solution: WP Multisite vs InfiniteWP
- Best way to have multiple custom domains associated with a site within a multisite installation
- WordPress multisite redirect one custom non www domain to www
- Multisite issue
- How to Add Super Admin for WordPress multi-site
- WordPress single sign on using cookies with shared user role functionality between more than 2 wordpress subdomains
- Max number of sub folders
- Can’t access 2nd site (sub) dashboard of WordPress Multisite
- How do I point two urls to the same child site in a multisite config
- what if one user in WPMU change the theme files?
- WordPress and SQL – Update and Insert from another table if column value doesn’t exist
- Multisite: Run a subdomain install from a directory install
- Network – My sites are unavailable
- White pages on sub domains after server transfer
- Plugin data shared in Multisite
- No input file specified after enabling multi site
- Remove blog slug from WPMU?
- WordPress multisite and one database
- Planning on Multisite Before Creating A Network
- Registration Page
- Can admins on network install view and edit users accounts?
- Unsure of my options, Multi-blog?
- WordPress Multisite with HTML template as Root
- WordPress Multisite (Network) some site users added to main site users list as subscriber