I have a custom post type no_resume and when a new post is created in it and a meta that is job_category is assigned to it I want to perform a function in which a mail will be sent to all the user that has that category in their database.
I tried save_post
and publish_post
and checked if meta exists in the database but save post fires before adding meta I want to execute that function only when a new post is created not when it is updated.