Solved it by using a modal box
instead of metabox
, forcing the users to finish editing the plugin data, before submitting the regular changes to WP.
//add_action( 'add_meta_boxes', array( $this, 'add_custom_metabox' ) );
add_action( 'media_buttons_context', array($this, 'add_custom_media_buttons' ) );
add_action( 'admin_footer', array($this, 'add_esm_edit' ) );
These were the lines that were added to the __construct()
. Commented out the old one.
The code itself is a simple link and when clicking it, it brings up the <div>
hiding in the admin_footer
.
Related Posts:
- Confirmation box when submitting post for review
- How can I retrieve multiple get_post_meta values efficiently?
- Ajax Load More Posts in Category Page
- Can I force a metabox to be in one column?
- How to add a new tab to page editor
- Listen to Post action
- How to add metabox for post of specific category
- How to batch update post content with custom post meta value
- Dynamically update post title in admin page
- upload image in a meta box
- Getting an alphabetic post list with two letters onclick on letter
- How to load post content on index page using ajax when post title in sidebar is clicked
- meta_box or custom_field as a second tinymce post-instance?
- 1 column admin screen options – move submitdiv to bottom
- multicheck box for post metabox
- Create A Metabox For A Custom Field
- POST from jQuery to PHP
- Working Bootstrap Carousel Conversion to WP – Technical Questions
- “Uncaught SyntaxError: Unexpected token
- Have save_post write to database image meta [closed]
- Add confirmation popup on “Move to Trash”
- What Can I Use To Add A Custom Button Between Publish button and Move To Trash?
- Using radio button meta data from a custom meta box
- Save list from a custom meta box?
- The correct way to call posts with ajax
- Using Custom Posts with Metaboxes and Drop-downs
- How do I use Ajax to show the new posts realtime, on the frontpage
- How to create a load more post entries like Twitter?
- Disable Jquery UI post tabs
- Automatic value for custom fields for posts
- How to rename “Publish” metabox title in post screen
- Understanding and using metaboxes in posts
- jQuery inluclude still seems ncessary for script to work within post
- Dashboard :10 Last draft page and 10 last pending review page (metabox)
- Ajax load more button in Recent posts widget
- Ajax Dynamic Archives not showing correct results
- WP_Query with ajax handler returns the same posts
- Adding custom fields to bbpress reply form
- Ajax post filters not working
- Ajaxify This Code
- Meta value does not save for scheduled posts
- Genesis + Ajax + Jquery | Failling to call action
- Simultaneous admin updates causes custom fields to not update
- How do I locate the exact location where this error is occurring 404 page not found
- Do all wordpress themes a similar class name for content?
- Security to delete post by Admin
- How to I retrieve the ID from the Posts page?
- How to save meta checkbox WordPress
- add bootstrap post slider with tabs
- Hide custom metabox value from custom fields
- Is there a way to create a meta box that can be added multiple times to a post dynamically?
- Use Click Image to Play Youtube Video in a WordPress Loop
- Get post meta retrieving wrong value
- Upload attachment from external site
- Show metabox value last post excerpt, title and link
- Updating post meta for checkbox
- Call current post URL in ajax
- How can I tell if a post has been published at least once?
- datepicker value in mysql
- Get post related to particular meta box? [closed]
- Adding a meta box to determine the sidebar [closed]
- Simple Custom Metabox Not Saving
- Why my meta boxes won’t show in front post page?
- displaying the categories post
- Using the loop to set locations for all posts on a single google map
- Display content between two dates?
- How to get value in radio input in post meta box?
- Display default matabox of posts(add category) wordpress
- Adding an option to post editor to show a site disclaimer or message
- Many buttons not functioning in WordPress dashboard (as admin)
- Ajax post doesnt call succes after got the response
- Colorbox not working on native WordPress gallery when gallery is loaded thru AJAX
- I need show posts by customer (Shortcode)
- How do I use slideToggle inside a wordpress post?
- Printable Page with all Posts from Tag
- Add meta box for Featured Image caption in wp-admin/post-new.php
- Remove All in One Seo from Posts for Contributors
- Meta boxes not saving
- problem with creating a wordpress post slider
- How can add metabox for post of specific category before save post and after save post [duplicate]
- Some comment box wordpress in 1 post [closed]
- Problem with jQuery in post body?
- WP Load post with ajax and apply isotope
- Run Jquery Script after delete post in front end
- Display metabox with date
- Get post id on click of thumbnail
- How to separate metabox data in front/backend
- How can I create a menu items from meta box based on users input
- jquery: getting contents of #content field on post page
- Full width images within post content
- how to show all post in my page-grid.php template page
- Delete pubished and unpublished posts with wp_delete_post?
- How to show a custom taxonomy in the theme?
- Sidebar limiting to 10 posts?
- post categories – how to show only categories with a specific parent id
- Post URL duplication adds numerical value
- Body text disappearing in random posts
- Displaying posts on Homepage
- Adding a time stamp on post view
- The post order is different for logged-in and non-logged-in users? [closed]