Why WooCommerce Memberships Ending Soon Email Doesn’t Work?

If you use both WooCommerce Memberships and Subscriptions plugins on your website you may wonder why "Memberships Ending Soon" email is never sent.

WooCommerce Memberships Ending Soon email
WooCommerce > Settings > Emails

First reason – there is a hook, which turns off this email if a Membership is connected to a Subscription

There is a hook woocommerce_email_enabled_WC_Memberships_User_Membership_Ending_Soon_Email deep inside WooCommerce Memberships plugin, so, the Subscriptions plugin connects to this hook and:

Example of overriding this scenario:


add_filter( 'woocommerce_email_enabled_WC_Memberships_User_Membership_Ending_Soon_Email', 'misha_override_ending_soon', 30, 2 );

function misha_override_ending_soon( $is_enabled, $user_membership ){
	return true;
}

Do you think anything will change if you use that hook? Lol, it won’t.

Second reason – scheduled action will not be created for Memberships without an expiration date

But as you can see below, all Subscription-based memberships doesn’t have an expiration date.

Memberships connected to subscriptions do not have an expiration date
Go to WooCommerce > Memberships and look at the Expires column.

So, even if you run the hook I mentioned above, Ending Soon emails (wc_memberships_user_membership_expiring_soon hook) won’t be scheduled anyway.

But why WooCommerce does it? I think it is because subscriptions doesn’t support early renewals at this moment. So, there is just no reason to send a reminder a couple days ago because you can not put the renewal link into the email.

How to Make Ending Soon Emails Work for Subscription-based Memberships?

Currently I’m working on a plugin that allows to turn the Ending Soon emails on for Subscription-based memberships too. Leave a comment down below ? if you want me to send you the link to the plugin once it will be ready.

Misha Rudrastyh

Misha Rudrastyh

I develop websites since 2008, so it is total of 13 years of experience, oh my gosh. Most of all I love love love to create websites with WordPress and Gutenberg, some ideas and thoughts I share throughout my blog.

Need some developer help? Contact me