Send email to author of the post when the custom post status changes to published

I have this answer in reference :

https://wordpress.stackexchange.com/a/100657/145078

It sends to all users.

I want to notify the author of the post only when author’s custom post type gets published.

Please help thanks

Read more here:: Send email to author of the post when the custom post status changes to published

Leave a Reply

Your email address will not be published. Required fields are marked *