Use the parent method to pass data back to your meta field.
Create a JS function to handle the passing of data from Thickbox to the meta field:
function foo_interstitial(data){
$('.form-field-selector').val(data);
}
Add a submit handler to your thickbox instance that passes to the parent.foo_interstitial() function.
$('.thickbox-submit-selector').submit(function(){
var _value_to_pass = $('.field-to-pass-selector').val();
parent.foo_interstitial(_value_to_pass);
});
Related Posts:
- Does WordPress have a “Form API”?
- inside a metabox
- Are there any standard HTML markup for metabox?
- WordPress global variables?
- Getting metabox value within a shortcode?
- Programmatically create new post from a metabox button
- Add a Meta Box for uploading a SECOND Featured Image?
- Remove the Yoast SEO Post Metabox [closed]
- Sample code for validating custom metabox?
- One metabox for multiple post types
- How to add a class to meta box
- Add Meta box Befoure Post Title
- Editing Screen: Make Update or Publish Button Follow The Page
- Why can’t I hook into save_posts after admin_init?
- Meta Boxes in Front End Post Submission Form
- Remove a plugin meta box from the dashboard
- Custom meta box shown when template is chosen [duplicate]
- Modifying the main editor priority
- How to make a meta box field a requirement
- Adding uploaded images to editor from metabox instead of default popup uploader
- Choosing a default page tempate (Classic => Gutenberg)
- How to remove the RichText Meta Box
- wp_editor in add_meta_boxes does not show gallery
- Add character count to custom metabox
- Update caption for metabox gallery images
- datetime_timestamp shows numbers only? need in date and time
- Custom Metabox with Ajax in Edit Post – Stuck
- Possible to limit custom meta boxes depending on what page template is used?
- Post.php – Conditional statements for new post and edit post
- Simple contact form with field validation
- How to generate a featured image from a video embeded in a metabox
- Meta box io oembed returns list not array
- How to verify meta box is registered in Unit Testing?
- Add a custom field to top attribute in WooCommerce
- wp_editor in metabox not working
- other shortcodes in Contact form 7 MAILS [closed]
- Select box saves but doesn’t update value in admin
- retrieve meta key when checkbox is used
- Add Meta Box not showing on New Post – Custom meta box not showing
- add wp_editor to custom_meta_box
- Customize WordPress Media Upload and New Media Manager Menu in add post Metabox
- How to display a custom post type’s media library inline on meta box
- Modules with meta box implementations
- Remove meta box for specific page
- How To Add Custom Meta PDF Upload Box to WooCommerce Products (and post link on frontend)
- Using WYSIWYG In custom meta boxes
- Visual/Text tabs in wp editor Not Showing
- save_post action to include wp_insert_post_data filter, gathering meta field info & prevent infinite loop
- Show Meta Box On Specific Page Template
- Change the context of excerpt metabox for the ‘New Post’ page
- How to have meta boxes save via REST in Gutenberg?
- Show preview of post changes on page
- Add Metabox to settings / options page
- Undefined index error in custom post metabox
- WPAlchemy MediaAccess inserting media link in WP Editor instead of custom field in metabox [closed]
- Meta Box will not display
- How to get the meta box name and value
- How can i use this meta box function in my template ? (WordPress)
- How to disable Author dropdown in Gutenberg’s Status and Visibility panel
- Why does not my metabox save?
- Display stored value in Meta Box
- Display Content if custom meta box checkbox is checked
- How to add meta box for current post format?
- How to check specific value in two metabox?
- How to show taxonomy terms from wordpress database?
- Modifying the wordpress login page and then referencing it with a shortcode problem
- add_meta_box creating default form field types
- Error showing in current page id in wordpress admin
- Show value of select dropdown in meta box
- Output list from each line of metabox (shortcode)
- Hybrid meta box, how to show?
- Understanding WordPress’ post type support
- How to make a metabox that contains link categories?
- Include doesn’t work, getting strange path: (/usr/local/php53/lib/php) – Whats wrong? (WPAlchemy)
- wordpress alchemy put custom metabox on certain page only
- using WPalchemy to output custom metabox from homepage template
- Custom meta box data in rss feed
- How using the Meta Box plugin, to filter posts by the value of a post type field?
- meta box pop up upload button wont work
- metabox dosn’t save with checkbox of post_type values order by taxonomy
- save meta data of custom post type: WP_Error has no effect, even if insufficient capabilities
- Page takes on two different formats
- Is there default meta boxes types that handles types and sanitization?
- how to update editor content from metabox
- Resposive admin classes?
- Only allow one meta key value per post in a category
- Metabox on a custom page – How to include the appropriate default scripts and styles?
- custom metabox nonce verification fails
- Is there a function to search for a wildcard value when calling a shortcode?
- Extensible add_meta_box with apply filters
- Make metabox always be on top (sticky)
- Best practices for meta box placement?
- Customer portal (posts as checklist)
- Option to delete value in metabox
- How to create metabox that can be queried in the database?
- Remove Title, Editor and Meta Box Support Based on Post Formats
- Custom select box meta field
- Saving an upload media meta box field
- My meta box don’t want to save value
- Redirect loop upon installation of my plugin