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?
- WP 3.1 – archive pages for custom content types possible now without a plugin?
- Admin Post Update Redirection to Posts Screen
- Single Page WordPress CSS and JS links
- Unable to filter on field on edit.php page
- Using ‘strtotime’ function to convert a custom-meta-box to a date-stamp
- How to Change the Title of a Meta Box on a Specified Custom Post Type? [duplicate]
- How to save the checked boxes?
- Disable dragging of metaboxes in custom post types?
- How to delete all posts from a custom post type?
- handling csv data with a custom post type
- Insert Multiple Post with Same Publish Button
- Cannot save Checkbox meta box value from a Custom Post Type
- Adding a custom post type taxonomy template in plugin
- Metabox not show in categories custom post type cmb2
- How to make custom taxonomy into drop down select in a custom metabox
- Custom fields for custom post type
- How to sort posts in a custom post type by title in ascending order by default?
- What’s an efficient way to change the post status of many posts at once?
- How to Echo Metadata Value in Currency Format
- How do I add custom HTML to the content of an archive page’s posts?
- How to add query args to links to CPT admin submenu
- How to get the current category with custom posts
- What is the best way to manage small blocks of content on my home page?
- How do I “trash” a custom post type post while logged in as Admin
- Limiting Amount of Posts in a Custom Post Type again
- Custom Post Type, Custom Columns List
- URL issue retrieving Custom Post Types using Backbone JS API
- Custom metabox with image gallery upload that won’t attach images to post
- call a function when insert and update a custom post type
- How to retrieve custom post type permalink in another cpt?
- Custom Pagination based on Custom Post Type
- Custom user roles
- Custom Post Type
- Search form to find custom meta box generated data
- How to add jquery to my custom post type wp plugin
- Yearly Archive from a custom date metabox (Event Start Date)
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- CPT Template Option to Top
- Advise on Custom Taxonomies and Structure