add_action( 'save_post', ...
and test if your post type is tour custom post type.
Related Posts:
- Advanced search form with filters for custom taxonomies and custom fields
- Meta query with boolean true/false value
- Custom field values deleted when trashing custom post type
- How to get all custom fields of any post type
- Update CPT meta data using REST API
- Echo all meta keys of a custom-post TYPE
- How do I remove all the metaboxes for a custom post type?
- Custom Queries: Joining On Meta Values From Two Custom Post Types
- Gutenberg how to make attribute to save to meta
- Get all posts from custom post type and insert in select input as metabox
- Custom Post Type: Set post_title equal to a custom post type field
- I can’t set meta_key in my custom post type query
- WordPress Admin Panel search posts with custom post meta values along with title
- How to Update post status using meta data in Custom post TYpe
- Rest Api v2 orderby meta_key in custom post type
- bulk Update post_meta with default values
- How do I sort a custom post type admin column using two meta keys?
- Add Post Url to Manage Edit Screen
- How can I display my custom metaboxes on a custom post template?
- Display all custom post type posts and order them by an optional meta_key
- How can I get_post_meta() in the most efficient way?
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- Custom Post Status Transition Issues With Get Post Meta
- List all images from a single post meta value
- Show the same Article Available in Other Categories
- how to delete all users and posts based on ‘user_meta’?
- Meta Key Value in current-user-only loop
- How to set YouTube video as featured image?
- How to implement a Google map store locator
- Widget: Custom Post Type Post Listing Dropdown on Admin Side
- How do I create an archive page as a including metadata?
- Update Post Meta for a logged in user
- How to duplicate entire custom post type
- get_post_meta not working on publishing
- how can I register a post_meta field in an existing CPT and then call it again with get_post_custom()?
- get_post_meta returning no value in custom post type alert email
- Update postmeta Parent when post_status child change
- WordPress request fiter order by related post’s post_title
- Dynamic Custom Fields
- Show Custom Post Type meta boxes only on Page Edit
- Importing Data from a Non-WordPress database, into WP
- List Taxonomies: Don’t list taxonomy if it has no post – depending on custom post-meta?
- Can’t publish custom post type – “You are not allowed to edit this post.”
- Filter date from post meta when date is in string format
- Get only used meta_values
- Get $post->ID from a URL
- Displaying a div from an assigned meta_value when on a page
- Setting Post Title via Meta Data returns Auto-draft
- Values from meta-box not on $_POST
- Returning a custom content types with meta values
- Custom post type suddenly stoped working after WordPress 5 update
- How to show custom field on specific custom post type posts only when filled
- is_main_query() never called on WP 4.4
- How can I output WPAlchemy repeating fields meta values in my page template?
- Meta box data not saving
- Related posts meta_query CPT
- Meta box with front-end styling
- How can I get some of a posts meta data whilst it is still inserting?
- How to retrive Custom Post Type Meta Fields in Custom WP_Query
- Cannot Save MetaBox Data in Custom Post Type
- best way to use custom taxonomy, post type and meta in a job system
- Say I have a tech blog, how best would I store technical specs for a phone, if i use custom post types
- How to order custom posts by one of the custom fields value, ‘date’?
- Hide title field of selected post-types on edit pages
- WordPress CPT Taxonomy Dashboard Search – How to include taxonomy in search?
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- How to create review point system for CPTs (many-to-many relationship)
- After inserting new post with wp_insert_post() the post is not visble to WP_Query, but the same WP_Query works for post inserted from wp-admin panel
- How can I write a function that would update any missing specific post metadata?
- SELECT custom post type and its meta in SQL
- How to keep custom post type related information
- Custom attachment function not working in v5.4.2?
- Creating a custom post type upon registration for a specific user role
- How to sort by multiple values in a nested WP_Query
- Where is get_post_meta value located?
- How can I use a custom template to load custom post type posts based on a post_meta value
- How do I create a customised table list of a custom post type (in the admin area)?
- How to properly get the wp_postmeta.meta_value of a custom post type in specifics?
- How to save post_status using action save_post?
- Custom post meta box as a sub form
- Metaboxes in Loop
- Custom meta box data not saving
- Collect custom post in a calendar
- Storing data in a multidimensional array from dynamically generated foreach loop
- How can I get the $key / $value pairs of custom fields that were added via 3rd party plugins or themes?
- meta query always fails even if data is correct
- Values inside a custom field to determine which category posts to display
- Display a post count from a custom metabox selection
- How to rewrite CPT-Permalinks the correct way (incorporating meta-box-data)?
- Custom post type submenu sorted by specific meta_key & meta_value
- Advanced search form with filters for custom taxonomies and custom fields
- Querying meta values within an array
- Post AND page parameter for WP function
- why get_post_meta is returning 0?
- Save post_parent in a custom post type
- How to display Author Profile based on Custom field value
- Automatically add custom taxonomy when meta value gets to a set number or beyond
- Display a list of posts whose meta field values are equal to the ID of the post being viewed?
- Check for custom field value in different post type than current one and do something
- I am having a problem with fetching product data in the Gutenberg block editor