I solved my own problem.
save-post hooks in before the form is saved. It even gives us access to the $_POST object and allows us to interact with it before the original save happens.
What this means essentially is that I’m overwriting my values with blank formdata.
Rather than updating post meta, I’ve documented and am writing to the $_POST object the updated values, which are then submitted as part of the original save post.
$hat = update_post_meta( $post_id, 'field_name', $update_var );
Becomes
/**document this well or you'll drive someone insane in the future.**/
$_POST['field_name'] = $update_var;
Thanks everyone for your thoughts and attempts to help. You no doubt inspired me to think about it.
Related Posts:
- How to make a image-size selected by default in Media upload – WP v3.5
- Remove “Insert from URL” link in Media upload – WP 3.5
- How to change the wp-login.php page title?
- adding a filter to a shortcode?
- Hide custom image sizes from media library
- Permanently remove first image from posts
- Change the footer text on the login page
- add_filter to post-gallery and remove all ‘s?
- Action ‘save_post’ not working for quick edit
- How to overwrite youtube embed?
- Rewriting search and pagination base
- Change comments form title on a page by page basis
- Filter the blog title displayed in the header
- How can i create a function to get youtube video time
- Remove class that has been added by parent theme
- How do I know what variables are passed in a filter/action and what their meaning is?
- body_class filter – Is there a better way to write this code?
- How to add Shortcode (font awesome) in widget title?
- How To Change The Html of Products filtration sidebar in Woocommerce?
- Woocommerce filter cart and category specific quantity [closed]
- Wrap First Character after in a tag
- Get posts with at least one category in common with current post?
- Problem adding class to body_class
- Run a filter when a walker runs
- Change the site tagline (or similar) based on current page
- Custom filter in admin edit custom post type responding with invalid post type?
- Nesting if statements to echo only one string based on what tag was filtered?
- How to properly loop through these external URLs to get them into the sitemap using this hook
- Input type search in Menu
- save imported posts as drafts
- Is it acceptable to treat a filter like an action?
- How can I remove a function that has been added to wordpress with add_filter?
- Edit incorrect password message WordPress
- Add data attribute to each li in menu
- Ajax category filtering products default show all
- Add a specific part of current category page url to shortcode
- Contact Fom 7 – how to add custom HTML inside span.wpcf7-form-control-wrap AND IMMEDIATELY AFTER input.wpcf7-form-control?
- Auto-Select Parent Category as Primary
- Print last modified date only on posts
- How to add an arrow to menu items has submenus
- Generating an nonce for Content Security Policy and all scripts – How to make it match/persist for each page load?
- Unique icons next to each WordPress menu item
- Change tinyMCE editor to allow marked content when pasting from Word
- Problem with login form
- How to debug this search & replace strings snippet?
- Hide Featured Image Meta Box on Editor Screen
- Add item to top of menu using a filter in functions.php
- How to make modifications only to certain elements of an HTML string on the server-side?
- Content filter won’t work
- Warning: in_array() null given in PHP function
- How to append to an array and return the results in a filter?
- How do I create a secondary version of the_content
- Filter by field with array value in ACF on WP REST API
- wrap a span tag around author’s post count
- Can I remove or edit an include() from a function with a filter?
- Dynamically adding filters
- Class property seems to lose scope, attached to save_post action?
- save_post action inside a custom metabox class not working
- WordPress doesn’t load HTML
- How to check post meta isset or not empty during publish/save post?
- How to sort WooCommerce products page by latest in-stock items first?
- Show related products by attribute based and certain conditions
- How to Create custom block for displaying information in content section which act like shortcode
- Test the existence of a page/article by its URL, taking in consideration the URL rewriting by filters
- Filter ‘comment_notification_text’ not working
- How to remove get_header From all single pages in wordpress with functions.php without plugin?
- Change the “Show All” button in a WordPress Portfolio Filter
- Change lost password url to a mailto URL in WordPress
- Remove span tags from WooCommerce Downloads page
- How to edit post meta data before publishing the post it self wordpress?
- Add a top bar to a wordpress theme without editing the header.php file?
- Fatal error: Uncaught Error: Class ‘WP_Block_Styles_Registry’
- using filter and hook inside class
- How to change href of a Widget menu item link?
- Reload page with a different shortcode when a user selects from a dropdown
- Filter portforlio with librairie isotop
- WordPress Ajax filter: Create two loops for different output styles?
- Redirecting the lost password page request when using a custon login page
- How to display custom seo title before the loop?
- dynamically change content of div with php
- How to remove title tag with this filter
- str_replace not preserving whitespace
- Add custom filter to register data in array
- Get terms of the posts with one query
- Woocommerce Price Text
- Limit Taxonomy Parents
- Display a post based on its metabox selection
- Search box background on a different page template
- dynamically filter by category via sub-menu
- How to extend the page editor?
- How to add different menu items on different menus?
- Custom Filtering date with newsletter
- Add text below WooCommerce short description if metabox value is true
- How rename wp-content and wp-admin folders correctly
- how to append ACF field data using one of the following filter/ hooks
- Add an attribute on WP images attachment link
- Show post in elementor based on views and specific category with query id feature in elementor
- Display featured posts first, then display all others within a specific category in WordPress
- Why does my custom slug only show in Gutenberg editor after page refresh?
- Prevent publishing of uncategorized posts