Like @SamuelElh comment this is how I solved it:
add_action('updated_post_meta', 'check_meta_change', 0, 4);
function check_meta_change($meta_id, $post_id, $meta_key, $meta_value) {
if( '<ENTER YOUR META KEY>' == $meta_key ) {
// do stuff
}
}
Related Posts:
- echo value from ‘select’ field type into page template using cmb2?
- Search everything (posts, pages, tags, cpt, meta)
- Saving multiple Metabox contents
- Displaying Meta Box Image
- Formatting custom meta box date from YYYY/MM/DD to a more readable alternative
- Populate Custom Fields in a Custom Post Type?
- How to check if user meta field is empty in conditional else statement
- A better way to add a meta box to custom post types
- get_post_meta not working on publishing
- Cannot save CPT meta box
- create custom meta box with default value
- How can I output WPAlchemy repeating fields meta values in my page template?
- Add a class to post_class if more than one post shares same meta_value_num
- Add a meta field to the list of results for a custom post type
- Empty meta-box returns publishdate if no value is set?
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Problem with multi checkboxes value in metabox?
- Delete custom post type metadata without deleting the post in admin area
- Post AND page parameter for WP function
- List of Posts in a Custom Field
- Save an array from drop-down in custom meta box
- List all images from a single post meta value
- Adding dropdown select meta box to custom post type – seems restAPI is interfering
- Custom meta box data array: foreach not working correctly?
- Undefined Variable – Custom Post Type Meta
- What’s the difference between same wp functions get_posts(); functions in different form?
- Keep display metadata value on backend – Custom Metabox
- Populate dropdown from one custom post type inside another custom post type
- Meta Key Value in current-user-only loop
- Custom Post Type with Templates using Meta Boxes?
- Why is my select meta data not saving?
- dynamically add a custom field or metabox to custom post type [duplicate]
- How to implement a Google map store locator
- Posting to a Custom Post Type from front end – user generated content
- Visual editor issue by having multiple tiny mce editors in a CPT
- Update Post Meta for a logged in user
- Found 2 elements with non-unique id (#_ajax_nonce) and (#_wpnonce)
- Plugin – Combine Meta Box Input Fields into single saveble record
- Two Custom Post Types Many to Many Relationship
- Meta Query Filtering not working on Custom Meta Box using Radio Buttons
- How do I set all of a particular post meta to a value within the custom post type I’m in?
- Grouping metadatas into one
- Anon function and add_meta_box
- Metabox not show in categories custom post type cmb2
- Repeatable Fields Metabox with Textarea (or wp_editor)
- How to use TinyMCE Editor for one of my custom post meta field?
- Custom fields (wp_post_meta) vs Custom Table for large amount of data
- Homepage’s content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?
- Show Custom Post Type meta boxes only on Page Edit
- Adding Page Templates to post but it ignored it
- Importing Data from a Non-WordPress database, into WP
- Permalinks: custom structure for taxonomy – tags?
- Can’t publish custom post type – “You are not allowed to edit this post.”
- Custom fields for custom post type
- Custom “radio button meta box” not saving correctly
- Global custom meta box
- Meta Data for Custom Post Type not saving
- Warning: Invalid argument supplied for foreach() [closed]
- Add additional field to custom post_type
- Meta-Boxes for CustomPostType cause PHP Errors and Notices in “Add New” view
- Custom Post Meta from custom metaboxes is randomly being deleted
- Check if post with same meta value exists
- custom post type metaboxes not saving
- Add a custom meta box for client to order CPT posts how they want
- Submitting Custom Post Types with custom fields from Front-end form
- Display Repeatable Meta Box Content
- ACF in wordpress
- Displaying a div from an assigned meta_value when on a page
- How to Echo Metadata Value in Currency Format
- Issue on Working with Metabox – Checkbox to enable Sale Items
- delete_post_meta() for whole CPT / multiple posts?
- How to get specific post meta by title or id
- What do the numbers mean at the end of add_action(‘save_post’)…?
- A meta box (in a custom post type) with two different type of fields
- Why do I have to press the “Update” button twice to save my meta box values?
- How to inherit field value from parent post into in child / sub post
- Values from meta-box not on $_POST
- Custom post type suddenly stoped working after WordPress 5 update
- copy images from custom field to another custom field
- How to show custom field on specific custom post type posts only when filled
- Reusable metabox backend and frontend
- Custom post type in Custom widget – $listItem
- Cannot obtain custom meta information
- Get custom term meta problem on single post type
- Display custom meta on page that has been check in custom post type
- Meta box data is saved but NOT displayed in the meta box text field. Why?
- How to call a post’s metadata in shortcode.php?
- How can I modify a custom post type and custom page template for a child theme if all content seams to be handled by theme’s ‘native’ plugin?
- Save Metabox Custom Field Value
- Meta box data not saving
- Custom meta box in custom post type not working
- WP_Meta_Query object with conditionals
- Meta box not appearing in my custom post type
- Related posts meta_query CPT
- Let users upload image(s) to the post from front end
- Meta box with front-end styling
- Sanitaizing Select Optin For Custom Post Type Metabox in WP
- How to retrive Custom Post Type Meta Fields in Custom WP_Query
- Cannot Save MetaBox Data in Custom Post Type
- Adding an extra parameter [string] to my posts’ permalink?