i want to send email on custom post field (job_status == 2) but it is not working
This is with reference to the comments to question. Instead of running mail function on every meta value update, it needs to run on your specific meta. You will also need to change your code accordingly. First check for your $meta_key and then take value from $meta_value. Write you conditions on these fields and trigger … Read more