The meta boxes are irrelevant. Meta boxes are just a UI for adding arbitrary forms and data to the classic editor.
What matters is how and where the data is stored. Thankfully the code you included reveals this. From your code we can see that the saved values are stored as post meta:
$faqpress_ticket_username = get_post_meta( $post->ID, 'faqpress_ticket_username', true );
$faqpress_ticket_email = get_post_meta( $post->ID, 'faqpress_ticket_email', true );
So if you want to store the data in the same place as the meta boxes then you need to store it as post meta also. Storing post meta is as simple as using a corresponding update_post_meta()
:
update_post_meta( $post_id, 'faqpress_ticket_username', $value );
update_post_meta( $post_id, 'faqpress_ticket_email', $value );
You just need to make sure the $post_id
and $value
variables are populated appropriately.
Related Posts:
- How to force one column layout on custom post type edit page?
- How to add multiple images to custom post type?
- Redirect after deleting post and keep track of pagination
- Add comments meta fields to comments metabox on post edit screen
- WordPress metabox file upload in custom post [duplicate]
- How to add a select menu to this metabox code?
- Having trouble with custom post type / meta box
- Save or update data when custom post published
- Remove POST_TYPE from custom post type permalink
- How to: add option to add more checkboxes on custom post type
- How do I add a custom button to my “edit” list? ( edit.php?post_type= ) beside “Add New”
- How to add multiple featured image in meta box in post editor?
- how to set default value for checkbox in wordpress
- Adding Meta Boxes while Registering a Post Type in a Class
- Custom Post Type | Fatal Error on register_post_type()
- Dynamically add / duplicate custom meta in custom post types
- Get rewrite slug of custom post type in template
- How can I create a custom meta box to add an mp4 video to a page?
- Send email button in custom post type backend
- How to customize a permalink (URL) structure?
- Plugin: register custom post types, child ready and performance best practices
- Is it possible to create relational metabox values in a custom post?
- How to use TinyMCE Editor for one of my custom post meta field?
- How to Get WordPress custom post data in WooCommerce product meta panel? [closed]
- Adding the_content() in custom template email
- Cannot save CPT meta box
- Adding a metabox on a CPT’s submenu page
- Wrap meta boxes & data handling for specific post types in classes?
- Save Multiple Metabox values
- Custom Meta Box returns no HTML
- How to Use Custom Meta Field Instead of CPT Title in Post URL
- Creating alternate meta box context locations
- Is it possible to sort metabox teaxtarea values?
- Create a select metabox that the user can pupolate?
- Convert Custom Table Data Based Plugin To Be Searchable
- CMB select with data from CPT
- Is there a (preferable built-in) way to check what custom queries are used in a theme?
- Placing Admin Post Metaboxes in Tabs
- Wp Meta Query does not work while simple Query Works
- Auto update publish date of CPT Post if default post custom field value match to cpt post CF Value
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- Show a custom post title in another custom post type in Meta box
- custom post type and user post count shortcode
- WP_List_Table Inside Metabox Not Working on Clicking Search Button
- Getting data from dynamically allocated metaboxes within a custom post
- Admin metabox with custom post type dropdown option not update choosed input after saving
- How save custom meta type posts multicheck grouped by taxonomy (with CMB2) [closed]
- php output of generated custom metabox
- Custom meta box in editor of custom post type not working
- Registering an optional custom post type from a plugin
- Not Able to Display Metabox Saved Checkbox and Selected option After Save/ Update
- Add category slug as class attribute in a link array
- Custom metabox value not saving
- Add Excerpt On Quicksand Plugin
- Problems with a custom meta_box
- Multiple Block Quotes without using HTML
- How to apply order on custom taxonomy and custom meta key on custom post type
- CPT Metabox with email notification
- Set a Custom Post Type as a Homepage
- How to create a job post by email parsing? [closed]
- How to consume external API from WordPress post editor and display the response data in the custom field?
- How to show metabox in custom php menu page
- Meta Box Only in CPT Edit Page, Not in Add New
- How does the $post_type global variable work?
- Sending an email when a CPT is saved/updated (NOT when it’s created)
- Custom Taxonomy Not Showing in Menu
- Remove All, Published and Trashed Post Views in Custom Post Type
- How to customize admin posts based on the user who is logged in
- Set object terms not working on plugin activation
- get_post_meta is returning image id
- Metabox Populated with a Custom Post Type – How to Output CPT based on Select?
- Custom Post Type, Saving Multiple Checkboxes
- Using custom page templates with plugin [duplicate]
- How can I display custom post types under multiple views?
- Is it possible to create a post using a metabox?
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- How to post twitter like updates on wordpress
- Show Two custom Post type and their posts on category page
- How to get all `supports` attributes by post type?
- How to create an advanced filter search?
- Custom search for custom post meta with pre_get_posts interferes with WP search
- Get all of user’s custom post types in WP Admin for plugin
- Custom Post Type with metaboxes (no content) only?
- Issue with pre_get_posts on custom post type archive pages
- Assigning the same custom meta box to multiple post types
- Custom Post Type Navigation on Custom Field
- apply filters only to specific post listing without check the url parameters
- Why do I lose the content of meta boxes when I leave the page?
- WordPress if in term*
- Add TinyMCE to CPT metaboxes in 3.1?
- Custom post type and body_class: Remove “blog” class
- Custom Post Type Metabox – Not Saving
- Setting posts per page in query_posts
- How to insert content from another Custom Post type into Post?
- How can I show/add/save custom metaboxes as an Array of values?
- Plugin translation not working apart from name and description
- WordPress nl2br is not converting newline to html line break when saving metabox value
- Unable to show meta box data in frontend
- Weird problem happening with custom taxonmy when creating/updating posts
- WordPress custom meta field for custom post not storing data