Ok, this could be achieved this way, probably.
add_action('add_meta_boxes_my_super_duper_post_type', 'get_metabox_global_ajax', 9999 );
function get_metabox_global_ajax(){
if( isset($_GET['mgv']) && $_GET['mgv'] == '1' ){
global $wp_meta_boxes;
@error_reporting( 0 );
header( 'Content-type: application/json' );
die( json_encode( $wp_meta_boxes ));
}
}
Now, you send a request from your plugin page to post-new.php?post_type=my_super_duper_post_type&mgv=1
through ajax, and use the returned json response of wp_meta_boxeses variables.
Related Posts:
- Why can’t I hook into save_posts after admin_init?
- Custom Metabox with Ajax in Edit Post – Stuck
- How to create a button click counter meta box?
- Global Variable vs Local Variable
- Custom loop attached to link
- Reload meta box content with AJAX
- Need help, Passing variables with get_post_meta
- How to HIDE everything in PUBLISH metabox except Move to Trash & PUBLISH button
- Removing panels (meta boxes) in the Block Editor
- WordPress SEO by Yoast: Hide Meta Boxes in Posts for Non-admins
- How can I create a taxonomy meta-box with search suggestions but no new terms input?
- How to Add Reminders/Notes to New Post Meta Boxes
- How to reorder meta box position?
- How do I position meta_box on post edit screen after the title?
- Put the media uploader in a metabox
- Custom Meta Boxes: multiple fields within a repeatable field
- get registered metaboxes by post type or post ID
- Remove metabox from specific page template in admin
- Is there a filter/action to add content to WP admin metaboxes?
- Attach Files Metabox
- How do I create a meta box for dates?
- how to sanitize checkbox input?
- How to insert Gallery shortcode to a meta box
- Display list of tags as drop down menu or radio buttons in a meta box?
- How to List all Sidebars in a Metabox
- Conditional Meta Boxes
- Why is `add_meta_box` not working?
- How to access global $wp_meta_boxes variable on front-end?
- Save checkboxes of a metabox with a foreach loop (invalid argument)
- Add template meta box to category edit page?
- How do I migrate meta boxes from the Classic Editor to the “side area” in Gutenberg Editor?
- Multiple Checkboxes Metabox
- Why is save_post hook not running?
- Consolidate Metaboxes into 1 Big Metabox
- Why is variable value emptry in $_POST but available in $_REQUEST?
- Set the default value as checked for a meta box checkbox
- Alternative to esc_textarea
- Trigger JS in custom meta box if a featured image is loaded/exists
- Display oembed in repeatable metaboxs using CMB2
- Undefined ‘post_type’ error on Add new page
- metabox wordpress show in frontend
- How to use get_post_custom function on the blog page?
- Multiplicate entry on update_post_meta
- Populate meta select box with child pages
- Problem with meta box in Links
- Post Meta not saving when have empty post
- Creating an “admin only” meta box with WPAlchemy. Getting a fatal error on front-end when using current_user_can
- How to modify Publish metabox?
- Multiple Meta Boxes in separate files
- Hide Polylang metabox from the post edit sidebar
- Meta box html is not updating after saving
- Controlling Meta Box Height
- Custom Meta box only returns most recent value on page
- Stop saving process when metabox is invalid [duplicate]
- how can i do metabox [closed]
- How to add meta box for image upload using WordPress media uploader?
- why add_menu_page use simple function as arg while add_meta_box a call back?
- Output from Meta Box Array
- Have mu-plugin remove meta box ONLY if it isn’t already removed in functions.php
- How to show the value of specific key from nested array?
- Getting metabox value?
- Hide Page Title with Post Meta
- javascript variable to wordpress php variable
- Cannot remove meta box added through OOP
- Meta box does not save or update
- Show button if meta box has content, else hide
- Post Excerpt field only showing for default administrator
- Save JSON object attributes to custom metabox
- Is ‘repeatable’ a field type for meta boxes?
- Checkbox in post not saving value
- post meta – problem : copy the same meta for all the articles
- ACF – Hiding metaboxes through screen settings doesn’t work
- Remove Username and just show Name in Author Metabox in backend
- how can I make this metabox area
- Add forms dynamically in admin pages?
- Metabox not saving values
- Update Post Meta in Front End with a form
- Metabox with checkbox is not working true!
- Featured Gallery to custom post type
- Displaying a Metabox linked to post settings for all users
- Can’t get meta values to save
- Unable to save multiple images in wordpress
- How modify comments metabox on post edit screen in WordPress?
- Custom WP Meta Box – Use data from within the post screen inside meta box
- How to show select_advanced content instead of ID?
- Removing Meta Generator
- Error when adding Meta Boxes, but only when adding 3 with the same callback
- A correct hook for saving meta boxes data
- update_post_meta does not work
- Hooking into the Meta Boxes (Name/Web Address/Description) on the ‘Add New Link’ Page
- show title if one of post meta exist
- Query a Custom Post Type to another CPT via Metabox
- when saveing $meta_box i get Undefined index error
- Adding a Custom ‘Now’ button under ‘Published on’ header to return current date and time
- Adding meta boxes to custom post type
- Meta boxes not showing up
- Metaboxes not saving data
- How do I create a Meta box that can be repeated? (with an image section and text area)
- Input select option Change Content in Metabox
- My meta box don’t want to save value