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 Add Custom Taxonomy To Woocommerce Plugin
- Custom Post Types on Category Pages
- Can you make a custom metabox field be required to save a new post?
- Display content from custom meta boxes in revisions
- Best Way to Create a List of Musician Gigs in WordPress
- How to get custom metabox image field?
- Render a different post/template from within the template_include action?
- Cleanest way to code “Custom Write Panels/Meta Boxes”?
- How to register custom post types in a plugin?
- Actions that Run on Admin Edit Page Load After Posts Are Queried
- Post Via Email to a Custom Post Type
- Get the post children count of a post
- get_post_meta is returning image id
- Custom post type and body_class: Remove “blog” class
- Hide parent categories when clicked, and show it’s childs
- Can custom fields be added without a meta box?
- Meta Box on Custom Post Type not saving
- WordPress: Custom User Role cannot access Custom Post Type | “Sorry, you are not allowed to access this page”
- Custom post type suddenly stoped working after WordPress 5 update
- Filter posts of custom post type by meta key in (List All Section)
- saving dropdown menu data on custom post type
- Set Default Option Value as Blank for Meta Box
- Cannot Save MetaBox Data in Custom Post Type
- Custom post type meta box empty after save
- How to add a class to meta boxes (to customize them in CSS)?
- Custom taxonomy not saving correctly
- Extending post by email
- CPT email notification including only new value custom fields
- How to avoid duplicate posts queried from custom meta?
- My post loop needs to have 8 different post templates
- Simple Data picker meta box
- In WordPress do I create tables for my plugin or do I create custom post types for a Student and Classes Registration system?
- BCC email to subscribers
- Repeatable WordPress custom fields in a metabox
- Displaying information from Custom Fields in template with Types?
- Adapting plugin for custom post type?
- Post AND page parameter for WP function
- Add text to metabox input text field from Thickbox
- How to dynamically register custom post type