Please try using acf/save_post
action that will hook in after ACF data has been saved.
add_action('acf/save_post', 'check_values');
function check_values($post_id){
if(get_field('status', $post_id ) == "closed") {
sendSMS();
}
}
Related Posts:
- WooCommerce shop page to use my custom template [closed]
- How to sanitize select box values in post meta?
- Strategy to get post meta for use outside the loop
- Set Expiration Date of a Post from the Frontend with wp_insert_post
- Is there a need for nonce with Post Metabox?
- Same ACF on two different pages
- Metadata Query when storing data as array possible?
- WordPress get_template_part() function not working
- Dropdown filter by custom field
- Wp Super Cache stops the update of a Post Meta
- How can I optimize this code? [closed]
- ACF Pro make URL Linked in Custom Template [closed]
- How to show specific post meta?
- Is it possible to set a variable for get_post_meta?
- Get attachment meta (I need attachment ID, unsure how to find it)
- How can I sort my loop based on meta data, using a form?
- Related Post Category Filter
- ACF get_sub_field ALT TAG in the repeater doesn’t show
- wanted to sort the wp_query array by two ACF field (Year and month)
- Custom themes that won’t work when theme is changed
- Make a custom field in admin post.php read only
- Change default options on attachment page
- DIV containing iframe disappears below break point of 992 in Oxygen Builder
- After a while attachment meta data is missing “sizes” data
- Why is my Toggle field not showing in Gutenberg?
- What is the preferred way to add custom javascript files to the site?
- Should I use set_transient or update_option?
- Custom Taxonomy Tree view
- Best practice way to implement custom sections into a WordPress theme
- Add a preview to a WordPress Control Panel
- Change text of twentyseventeen_edit_link()
- How do I remove RSS feeds from themes?
- How to add (css) classes to only one wp_nav_menu()?
- Advantages of using instead of wp_enqueue_style()?
- Style.css redirects to 404 Page not found
- query posts in functions.php and update a field
- How to add suggest plugin to theme?
- When developing a distributable Theme, does it HAVE to be “inheritable”?
- Relative Time On Posts
- Prevent update check for specific theme
- Minimising Database Queries when using Advanced Custom Fields
- Unhook jQuery from WooCommerce via `functions.php`? [closed]
- Free starter theme to make mobile websites? [closed]
- Set a static front-page as a landing page programmatically
- How can I display/hide certain content based on a Theme Option field?
- How can I make that when I clic on one of the menu items, that page shows only posts with the same category?
- Hide header texts (Title & Tagline) in custom-header.php
- Why an arugment is missing in wp_get_attachment_image_attributes?
- Archive page doesn’t work
- How to add “Template” option in page attributes panel?
- How can I detect hierarchal relationships beyond children (grandchild, great-grandchild, etc)?
- How to enable thumbnails in RSS dashboard widget
- How to check if a WordPress core block is active in sidebar
- How can i attach the attachment-ID to the user profile image?
- How can I fetch the WordPress cart errors normally displayed in woocommerce-error?
- wp_remote_get times out on api request but jquery GET and postman work?
- Folder name for a pro version of a WordPress.org theme?
- Remove settings if theme is deleted?
- Using WordPress’ Theme Customizer to select page templates that update layout in the preview
- what is the difference between uri and path?
- Derive child theme from separate theme
- How to change footer or for different kinds of users in wordpress?
- How to Download Minimum Requirement of WordPress (Not Themes )
- Create a child theme from multiple themes
- How can I use the WordPress Loop and Pagination in multiple instances but different scenarios throughout my site?
- How to determine (via php) if site is using a static home page?
- Migrating to WordPress – but how will it do “structured” data?
- Ajax: Populate with content from a post’s ID not working – duplicating current page html instead
- Displaying the right content on a page url
- Why WordPress AJAX returns undefined however it works fine when I add static url instead of dynamic function?
- Adding a new setting using Kirki or WP customizer with an if statement
- Translate a child theme with pure PHP and gettext
- Pagination: Keep prev and next link even on the first/ last page
- How to remove permalinks links presents in each page of my site?
- Is there a way to serve different resolution images to different devices?
- How to substitute old wordpress menu by wp 3 menu the right way?
- Why my theme option not working?
- How to use multiple check-box values to work in a function and insert values in database
- Catch the moment when theme is deleted
- Attribute form NumberControl doesn’t update when I update page before it lose its focus
- Next and previous post link shows error in first and last post
- create loop for the_content()
- how to change footer content for certain pages only
- Should I use template files or just use conditional tags in index.php?
- Media & Plugin screens stall
- Is wp_mail plugin territory?
- HTML TO WP Theme : Submenu goes down wp_nav_menu
- Create a variable with string, array or multiple values
- How can I include the js and css file of my custom theme dynamically in header.php
- WordPress Blog Page displaying nothing
- Full width thumbnail
- Set start page depending on screen width [closed]
- How can I change the title of the Home link in the navigation bar?
- Add option for administrator to submit link
- Display recent posts on front page
- Feeds are showing where Post archive page should be
- My wordpress site memory exhausted more than 1GB trying to debug with default
- Display first post on each page differently than the others
- I want to resize post featured image without cropping image. How?
- Image and font support missing in editor when deploying theme remotely