Send Email Notification On Any Custom Post Type Posts Published

I have multiple Custom Post Types and I want to send email notification to admin on post published from any of those post types.

I managed to send email via publish_{my-custom-posttype} hook but don’t want to invoke for each custom post type seperately. Is it possible by some means with single hook?

Read more here: Send Email Notification On Any Custom Post Type Posts Published

Leave a Reply

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