I have a couple of products each linked with an WooCommerce membership plan, each plan restricts a specific post category, so the customer can view posts of a category only after purchased the product whose membership plan restricts that category.
Now for every new post I would like to send an email to the customer that has purchased the product,restricting that category of posts, a new post has been published. Is there a way to accomplish this?
To go into more details its like this:
I have Product_A
and Product_B
2 Post categories: Literature and Math
2 Membership plans: Plan_Prod_A and Plan_Prod_B
Plan_Prod_A
restricts the category Literature
Plan_Prod_B restricts Math
To view posts from the Literature category the customer must purchase Product_A that will grant him access to the membership plan Plan_Prod_A.
Now after purchased I need that for as long as the membership lasts,for any new published posts from the Literature category an email must be sent to the customer with the link of the post to notify him that a new post has been published.