Thanks for your advice. In fact it is a hook that I fire of with this check. It looks like this (an example, the check is done in two places for different user levels and in two different plugins)
// Down locks me out of admin area if network activated...
if (!(current_user_can(‘manage_options’))) {
add_action( ‘admin_menu’, ‘ngo_remove_eo’ );
}
and the function is;
function ngo_remove_eo() {
remove_menu_page( 'edit.php?post_type=event' );
}
I changed it to this;
add_action( 'wp_loaded', 'eongo_cleanup' );
function eongo_cleanup() {
if (!(current_user_can('manage_options'))) {
add_action( 'admin_menu', 'ngo_remove_eo' );
}
if(!is_super_admin()){
add_action( 'admin_menu', 'ngo_remove_eosubmenu', 99 );
add_action( 'do_meta_boxes', 'remove_eopost_custom_fields' );
}
}
and now it works 🙂 Thanks a lot Dave.
Related Posts:
- Getting Custom Post Type content from main-site of a Multisite
- Cannot access wp-admin after disabling all plugin
- WordPress on AWS with ELB
- How to display terms and conditions in post area?
- How to remove a CPT Menu from the Root Admin only
- Redirect Plugins.php to New Plugin Page
- Add custom fields in the new and edit the site forms without touching the WP core
- How to eliminate weird 404 errors in wp-admin?
- WordPress sharding: which multi-DB plugin to use?
- How to stop showing admin notice after close button has been clicked
- What is a Network Activated Plugin Exactly?
- Is there any record of installed plugins in the database?
- Best way to manage a lot of pages in Wp Admin [closed]
- Using Vagrant for customizable WordPress Multi-sites [closed]
- Sharing Ad Revenue among Users of a Multisite in a Collaborative Model?
- While using WordPress Multisite is it possible to display data to main site from subsites?
- Is it possible to run plugin code when a multisite blog is deleted?
- Multi domain, multi sites with different themes and content
- How do I add to the list table a filter?
- Aggregate Summaries of Posts of Different Blogs in Multisite Instance
- Posts wont expire
- Multisite functions to communicate with individual site functions
- I’m trying to create security question field for my login page
- How Restrict access to admin dashboard by specific static ip?
- Duplicate a Multi-Site Subdomain
- How to get last_updated and newest_blogs in WP 3.0
- Display All Non-Used Plugins
- Having separate plugins and themes folder for multi-site setup
- Creating Custom Roles for use on a WordPress Multi-site Instance?
- Remove filter from WordPress Plugin
- Hide Theme options and Customize Admin menu
- Making menu link open in new tab?
- After activating a Plugin, /wp-admin is no longer accessible
- What Plugin Do You Use to Turn WordPress based site to A Blog Aggregator
- Check if User exists in WordPress Multisite
- Plugin to list active plugins across networked sites
- Function to prevent users from trashing comments
- Network: retrieve a list of latest posts
- How to provide a plugin which requires CMB2 (plugin dependencies)?
- How to add class in plugin only for network site?
- How to make an interface similar to multi-site for switching between multiple (single) sites for administrators?
- How to write a plugin to add users to a mail list
- My Category is too big on the Menu what can i do?
- WordPress takes too much time (100 seconds) to load – Front end and back end
- Edit default comments page in WP Admin
- Media is not attached after import
- Is there an easy way to flag posts in the admin area?
- There is any way to remove post-format filter? [closed]
- Dynamic admin submenu
- Add custom text color WordPress 3.9 TinyMCE 4 Visual editor
- Cannot access my wp-admin after installing Gzip compression [closed]
- Plugin settings won’t save changes
- Create a single website with 3 theme options in wordpress
- Odd /wp-admin/admin-ajax.php entries showing in Wassup
- Display Plugin Panels Outside of Admin Areas
- WordPress Site is Broken, Cannot see wp-admin page [closed]
- WordPress super admin login issue. (Automatically logout)
- Hosting multiple sites
- Mowing site to another domain in simplest way
- Cannot access WP admin because plugin returns 204
- Install old version of plugin from admin panel?
- WordPress as heavily personalized content management portal, and somewhat like dropbox [closed]
- Multisite Plugin – Access options (wp_options) on child sites
- Constructing a Pay to Download music website with wordpress
- Can’t save changes or modify settings in Dashboard but Pages and Posts are fine
- Multisite Change from domain.com to sub.newdomain.com
- Trigger jQuery to add events after AJAX-loading table in admin plugin
- how to move a plugin-block in Edit Post page back to bottom area?
- wp_post not working, keeps redirecting to posts page
- WordPress fatal error from php protocol codes
- Can I edit multiple sites with an online WordPress account?
- Fatal error: require_once(): Failed opening required
- How to properly enqueue jQuery knob on WordPress without conflict?
- Add custom WordPress admin page with pretty url via code
- Creating one user access account for all the multiple sites
- Get full URL of WP plugin admin page
- WordPress Plugin PHP Not Calling Function
- Admin menu hilighting wrong item for CPT
- Is admin section completely customizable in terms of styling?
- Copying content from my other websites
- how to add navigation icons in specific template?
- Not able to upload Plugins/ Theme from Admin backend
- Update javascript URL in header – Domain Mapping Plugin [closed]
- Disable plugin on admin page
- How do plugin updates work?
- Automatization for automatization
- Ajax return 0 in plugin – ajax only used in wp-admin
- Is there going to an issue running different features of WP site in different subdomains?
- How to add php stylesheet to admin section instead of admin_head hook
- Plugin on all site except primary one
- Integrating planning tools in wordpress
- Pulling sub-site content into specific pages
- Frontpage Admin Bar Disappeared
- Get post id in Post Page within Wp-admin
- AdBlock blocks my non-advertising sidebar images [closed]
- Combining JS files to one script
- turn off WooCommerce for a site in a multi site environment
- WordPress Plugin and other pages not opening
- warning wp session
- /wp-admin/plugins.php takes ages to load, and then 404s