• Resolved logicelf

    (@logicelf)


    Hi folks,

    Pretty new to WP development, so please be kind!

    I have a site with a few custom post types. I’ve implemented ‘Favorites‘ so that users can bookmark a given post or page, and created a Bookmarks page where they can see their bookmarked items.

    I want to notify users when a post that they have bookmarked is updated. Notifications looks amazing, and I think will serve my use case nicely.

    I’m thinking I can use Notifications by attaching to the wordpress/{post_type_slug}/updated trigger, then iterating through Favorites’ handy get_users_who_favorited_post() function using that post ID, and pass each resulting user’s email to Notifications’ Email Carrier with the {user_email} merge tag so that I can send them a brief message with the permalink to the updated post.

    I’d be really grateful if someone has done anything like this before, has any tips for me, can sanity-check the above, etc.

    TIA!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Emailing users when ‘bookmarked’ content is updated’ is closed to new replies.