Notify users whenever a new post is published based on their preference
See this example on the question 19259. The function was init on publish a post, change the hook to your post type or use on default post – Hook publish_post. Before you send check in the function your custom user meta field, like get_user_meta( $user_id, ‘interests’, TRUE ); and ready to send the information about … Read more