I ran into this issue recently on a site that I was modifying for a client. The solution that worked for me was to set a ridiculously high priority for my action hook, like so:
add_action( 'add_meta_boxes', 'mjp_edit_meta_boxes', 999 );
This ensures that the action is executed at the very end of the chain after all of the meta boxes have registered.
Update:
If this isn’t working for you, trying hooking into another action such as admin_menu
.
add_action( 'admin_menu', 'mjp_edit_meta_boxes' );
Related Posts:
- Problems with removing admin bar
- Check if I am in the Admin Panel (wp-admin)?
- I cant add is_admin control to plugin
- How can I add an image upload field directly to a custom write panel?
- Is it possible to reuse wp.media.editor Modal for dialogs other than media
- How do i best handle custom plugin page actions?
- How do I improve this admin query snippet to avoid generating duplicate results on non-meta searches?
- Export data as CSV in back end with proper HTTP headers
- What is an alternative method to the WordPress private _doing_it_wrong() function
- Hook the Keydown Event in the TinyMCE Post Editor
- How do you create a custom edit.php / edit pages page
- Cancel post save
- function triggered by “manage_users_custom_column” filter not working
- WordPress plugin how to run function when button is clicked
- Shortcodes, output buffering, and WordPress functions
- Create a clickable name in WP_List_Table for Plugin Admin
- When to check if a function exists
- Problem with `wp_mail()`
- Calling a function from functions.php in custom page/ blog post
- How to add custom content under plugin row in WordPress admin plugin list?
- How to put placeholder text in the main post input area?
- What is the difference between current_page_parent and current_page_ancestor?
- Plugin development: is adding empty index.php files necessary?
- How to load the plugin only when logged in?
- WP AJAX is not working, always returns 0
- wp_enqueue_script + wp_enqueue_style Since When
- How to run a external JavaScript file on wp-admin if admin, and other if normal user?
- Widget update function not saving values
- add a class when login
- Add a panel to edit post
- $content variable – Is this a reserved variable for a WordPress function? – php / wordpress
- Using the default wordpress uploader inside plugin
- How to use WP_Term with (menu) argument in the wp_nav_menu?
- WordPress after content Hook & external template part
- override pluggable.php functions
- Modify users.php page to create page/post on button clicked
- Can I change header.php of current theme through a plugin function?
- Replacing Scripts in Admin Load_Scripts
- get_current_screen() return null
- creating custom function to log actions in plugin
- Problems with: manage_${post_type}_posts_columns
- Maximum lifetime for nonce
- Adding option to Gallery shortcode
- How to change the hover content of a specific menu item on WordPress?
- Prevent third party plugin’s admin page access based on user type
- How to add WordPress Admin “Insert Link” UI (searches through existing posts for URL) and functionality into a custom plugin?
- How do I update a field of a meta box?
- Admin – Handle data before creating or updating a post, page or custom post
- wp_filesystem put_contents issue with owner/group
- How can I replace content in the WP Admin area before an admin page is rendered?
- How to load library scripts in admin from plugins in noConflict wrapper?
- WordPress function get_the_terms() returns ‘Invalid taxonomy’ error
- Enqueue script globally
- WordPress class, using add_action to call member function does not work
- How do I add a favicon that only shows during viewing of my plugin’s admin panel?
- wp_get_theme Warning: Illegal offset type
- 400 Bad Request, in wordpress theme development, wp_ajax
- How to import the css in the plugin admin area?
- Creating multiple wp_editer() text fields in for loop — the text/visual switch only works for first editor
- Displaying “One Time” Notification in Plugins
- Print Dashboard submenu name and filename
- Admin Subpages without Menu entry
- Call to undefined function is_home() or any conditional tags
- Data not insert and update through ajax and jQuery in admin page?
- Catching Form Submission in WordPress Admin Panel
- Is it possible to load the css just on my plugin admin page?
- AJAX button with success callback. (Titan Framework)
- wp_schedule_event is registered but function isn’t running
- Disable Auto-Expanding Menu in WordPress Admin Menus
- How do I force a download in the admin area?
- Plugin Development – Get Admin Url (Including cases where wp-admin is not used)
- Remove Meta-boxes (Yoast SEO plugin) [duplicate]
- Setting post_id for single.php based on URL without a redirect
- using admin functions on frontend
- Javascript Function Called Too Early in PHP Script
- Get cat parameter from admin-ajax
- How to make an admin plugin menu page go full screen?
- Change the behaviour of a button
- WordPress admin panel not working
- Add New Button in Admin Panel
- Redirection from a specific page for users logged in but not with membership
- Change Label of custom post type
- wp_ajax add_action fuction won’t fire on custom jQuery action
- How to enable or disable check boxes in custom post type
- foreach argument to get specific file types getting too many returns
- How to display properly exception or echo string after posting in plugin?
- Building WordPress Themes With Bootstrap with Adi Purdila → TutsPlus
- Same header/footer in Admin, across all network sites in multisite
- Template file structure , wordpress hook for altering the template
- How can I see a varibles value when my plugin runs?
- How to add conent (text) to Add New pages form of admin in WordPress
- How can I add recent posts to menu like mashable
- Forcing ALL plugin Admin menus into a separate menu
- Post data in wp-admin to external database
- WordPress multiple user roles accessing on their information on one site?
- Custom options page for themes
- Call do_action() within WordPress cronjob
- Loading jQuery library from WordPress admin
- How to plugin function code move to theme function.php ? I’ve tried below code but not working [closed]
- How do I change the Go To Categories link in the term_updated_messages