A little late, but I just had this issue where adding a taxonomy term was working, but adding post meta wasn’t. The solution was to set a higher priority. The default priority is 10, so try for instance priority of 100:
add_action( 'save_post_dealer', 'save_dealer_long_lat', 100, 1);
Related Posts:
- update_post_meta() not working in save_post
- How do I save each option in a multiple select menu as it’s own meta_key + meta_value pair?
- Post meta checkbox becomes unchecked occasionally
- Set the value of custom field when post is published or updated
- update_post_meta not working in foreach
- Check for page template on save_post hook
- How to get a post meta value and pass that to update_option when a post is created or updated?
- Check for update vs new post on save_post action
- Passing error/warning messages from a meta box to “admin_notices”
- How to avoid infinite loop in save_post callback
- Execute action after post is saved with all related post_meta records (data)
- update_post_meta and update_field ony working when saving the post
- $update is always true in save_post
- Action hook ‘save_post’ triggered when deleting posts
- get post meta before it is updated (during SAVE_POST)
- save_post action firing before I publish / save the post
- save_post action only when creating a new post
- Check if value has changed on save_post
- Get updated meta data after save_post hook
- Manipulating post meta in the customizer
- Add post meta based on another post meta value before publish post
- Minimum Word Count Before A Post Can Be Made Pending Review
- Return code from save_post action?
- Metabox of one post influence setting on other
- Get updated post meta on save_post action?
- Correct processing of `$_POST`, following WordPress Coding Standards
- update_post_meta() whenever custom post type is updated
- unable to save post meta on single field with multiple selects
- Trigger “unsaved changes” dialog for custom post meta changes
- Delete post meta conditionally after save post
- save_post only saves meta data on second save
- Get Post ID with insert/edit link
- How to manage saving custom field from Quick edit and Post Save using save_post action hook without colliding each other?
- Why save_post_$(custom_post_type) is fired even if I am not already saving a post?
- Set default Custom Post Meta Value
- update_post_meta() with a modified array?
- Get Meta Key Value While Saving Post
- pass error to admin_notices on “quick edit”/save_post action
- save_post requiere at least one uploaded file to be published
- Get $_POST & $_REQUEST values before adding/updating post
- Plugin with action ‘save_post’ needs to press publish twice on order to publish
- How can I create a new user account while creating a new post, and then set that new user as the author of that new post?
- ACF (Advanced Custom Fields) not updating post or postmeta values
- Set default value field meta_Value [closed]
- Validate post checking if child term is assigned
- Update post meta using save_post hook in multisite
- Saving zero as meta value
- Clear cache on post of one type when something happens to post of other type
- Why not fire the save_post event?
- Compare custom taxonomies of updated post (or new post) [Updated with progress]
- Save post meta foreach loop
- update_post_meta not work [closed]
- Reset all transients on post or page save
- Using PODS data with save_post
- Allow only one post with specific meta value
- Cant’t delete my custom posts
- How to validate select field in post meta?
- where does this $post_id come from?
- displaying an error before update_post_meta
- Update current WP post every 3 minutes [closed]
- How to detect that the save_post hook is calling the callback associated to the current edit post page only
- Change post author without using wp_update_post()
- Changing new post to “pending” on publish – but “Publish failed” – why?
- Update post meta within save_post action
- Save meta data with post, Without using any plugin [closed]
- Save post in another table
- Editor meta box Showing but not saving
- draft_to_pending action doesn’t seem to fire
- What action to use for when a post is saved / published, with a caveat
- Front end update_post_meta Help
- Custom wp_editor doesn’t update post_content
- Save custom value to main content of post
- save radio button selection in post-meta on submit
- troubles with get_post_meta (and saving it)
- Access NEW/UPDATED post values in save_post() callback function
- How to check post meta isset or not empty during publish/save post?
- Issue migrating a checkbox-type meta field to the block editor
- save button grayed out randomly
- wp_insert_post inside save_post adds wrong metadata to inserted post
- Custom post type meta fields missing on save_post_type
- How to save post_status using action save_post?
- save_post doesn’t correctly process function call with php class
- Saving post meta
- Post editor doesn’t save embed media [closed]
- Custom meta box data not saving
- WordPress save meta data : Displaying the word Array when selected
- Save current post using custom save button
- Update post_meta post_name with the post ID from wp_insert_post after user register
- Connection Reset on post/page save
- Problem with ‘save_post’ hook not running
- post_title in save_post action
- Meta data not saved on save_post
- Insert/Update DB table when making new post or update older one
- Prevent Page/Post From Being Created based on Pages/Posts per User per Time Unit
- How to debug | Some times the “Save Draft” button seems to spin but does not actually save
- My custom title gets duplicated at every save or post update
- Auto save title as custom meta field value
- Save frontend submission form field as custom field
- get_post_meta() returns nothing in save_post, publish_post, wp_after_insert_post
- if condition from post_meta not working in save_post