Example code in add_meta_box() documentation uses save_post hook (at the very end of wp_insert_post() function) to add custom fields data from metabox.
You must be using something like that already in your metaboxes, is it not appropriate place to validate your data?..
Related Posts:
- Add a Jquery Datepicker to custom field in post edit
- Is it safe to store a user setting you don’t want the user to ever modify as a user option?
- How to make custom comment fields required and message field not required
- How to reload the role specific registration form on validation errors?
- Add input field to ‘Pages > Edit Page’ through functions.php
- Auto-add paragraphs to custom field?
- Add description text under input field for new profile fields
- How to validate custom field on lost password form before the user id field?
- Validate data on attachment_fields_to_save
- how to upload a image from frontend with wp_insert_post and also update_post_meta?
- Warn user that data may be lost for custom pages
- WordPress built in custom fields don’t validate or sanitize? Is there a way to fix this?
- How to add fields in custom registration form, validate it and aave to db? [closed]
- Sanitize user input fields before wp_insert_post
- How to validation for sanitize_URL?
- Meta Box Plugin Cloned Fields – Multiple Foreach values
- Display metabox title for custom fields with values
- simple fields plugin custom query
- Display the output from Custom User Fields from a WordPress user profile on a WordPress Custom Page
- Making custom meta box required (with error message if not filled in) on Gutenberg
- Adding text box with add_meta_box
- How to format the various types of custom fields?
- How do I use foreach to get content from a custom-field in multiple posts?
- How can I hide my section title if there is no data in custom fields?
- Validating custom meta boxes with jQuery results in posts being saved as draft instead of published post
- Show message if statement is false – foreach
- Retrieve IDs from custom field, count and display results differently according to count
- Website that sells statistics
- Foreach giving one too many list items, how can I remove the last empty line?
- Set post status to draft after validating post meta values in save_post hook
- Turn raw url into clickable links
- Add additional field to custom post_type
- WordPress sites being filled with random PHP files
- Which PHP page is the Default Posts Page
- Stop sending email everytime I updates my post
- Best way to store everyday post views?
- Get post ids sorted by meta_key
- Advanced Custom Fields Plugin – Unable to get URL from post_object
- Plot location on Google map using full address specified in custom field
- Display custom field value as a hyperlink
- Non-Closing PHP Query in WordPress Loop
- Unable to get specific value from post meta
- How to show/hide php table rows based on the content of custom fields
- pre_get_posts : only get posts by wp_usermeta value
- Display list of terms having the same custom field value
- How to display custom field in woocommerce email orders? [closed]
- Custom meta is not being saved
- Displaying Custom Field Array
- Query post by date (stored custom field meta as yyyymmdd) and differentiate across 12 months
- IF Custom field value equals ZERO
- how to get serialized post meta
- Custom Field Repeating When Using foreach
- Can I save post meta programatically without setting metaboxes?
- Conditional featured image with youtube thumbnail
- How to add a css class to custom field value?
- Show custom field on attachment page?
- Help setting up a sql query
- Advanced Custom fields not available yet during publish_page action
- Meta box values are displayed on Custom Fields list. Is it possible to hide them?
- Sort posts by custom field value
- Help with this custom field conditional if no field is set display nothing
- Is this plugin safe to run?
- if statement display content even though no data
- How to pass custom field value to shortcode?
- custom comment_form fields not displaying
- WP_Query () using taxonomy, custom post types
- Get custom post fields from multiple metaboxes
- Get author total post votes from post meta
- use custom field value as post category in loop
- Searching with Multiple (Parallel) Criteria on Custom Fields?
- Save custom field types with this function…?
- Compare ACF date field (if exists) and post date and order DESC
- How to display custom fields in hestia theme
- How to update only certain custom fields in a the cache of a page?
- get_post_meta shortcode returns empty field
- Query on a repeater date (acf)
- variable not passed correctly to database using custom field
- WordPress Blocks, setAttributes not saving
- non-unique #_ajax_nonce id in browser console
- Delete a custom field in mysql for all posts with specific category id
- Trying to get custom field data in a simple plugin
- Sort columns in the ‘Pages’ dashboard overview
- Updating Lat and Lng of posts automatically gives sporadic results
- Why does this javascript search function in the WordPress Admin not work?
- 4 Unique Random Posts based on Custom Field Values
- Create Meta boxes dynamically
- Page template is missing fields or is invalid when I updating the template
- Get meta value when the page is a blog archive
- Add Image With Changeable Link in Custom Field [closed]
- Create download page from post option link
- Add capability for editors to modify custom fields
- How to Pull Out Twitter Summary Data in other areas of my template?
- query specific posts according their custom fields, using sql SELECT
- Meta_query not filtering posts
- Should I use a Meta field or custom table?
- Rewrite Custom Fields url
- Display custom field outside the loop
- Associate an image with a post to show it in a slideshow
- Dynamic background image used in css after selector
- How do I organize posts based on their taxonomy?