Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hooks before and after the subscription info table email #753

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

webdados
Copy link

Fixes #752

Description

As mentioned on the issue:

Depending on the subscription business, the information on the "Subscription information" email template might not be enough for the customer to understand why is he getting this email.

(...)

I have two suggestions:

  • Load the order details email template after the subscription information table
  • Add hooks before and after the subscription information table so that developers can decide what else to add

This PR implements the second suggestion.

How to test this PR

Hook into wcs_email_before_subscription_info or wcs_email_after_subscription_info and add any content you want to the subscription information template on emails.

Product impact

  • Will this PR affect WooCommerce Subscriptions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow adding additional content to the "Subscription information" email template
1 participant