5 votes
Accepted

How do I add a "Cancel" button on the subscriptions listing page

I was looking for the same thing but couldn't find it anywhere so I tried to do it myself. Here's my code by the way. Hope this helps. function addCancelButton($subscription) { $actions = ...
Reynold Salceda's user avatar
3 votes

Limit users to one active subscription in WooCommerce Subscriptions?

I was facing this problem and I check if a user if the user has a active subscription before he can a something to the cart. There is a hook called woocommerce_add_to_cart_validation. So you can add a ...
Rob Anderson's user avatar
3 votes

Limit users to one active subscription in WooCommerce Subscriptions?

Unless I'm misunderstanding you, WC Subscriptions already has this functionality. Firstly, set your subscription product to be variable or grouped, rather than having multiple individual products. ...
Peter HvD's user avatar
  • 1,101
2 votes
Accepted

How to get subscription key or id using Woocommerce Subscriptions

I figured out the answer, so I thought I'd post it. My code looks like this now and it works: add_action( 'processed_subscription_payment', 'updatedays', 10, 2 ); function updatedays($user_id, $...
nerdalert's user avatar
  • 131
2 votes

Running a php code after User clicks a button?

You can wrap your code in a function and use a button to activate it. Create a button and assign a function to it's onclick event: <span onlclick="javaSubscribe();">Subscribe</span> Now, ...
Johansson's user avatar
  • 15.3k
2 votes
Accepted

How to add/manage Followers (email subscribers) via API?

This API uses an oAuth2 approach. With the endpoint /sites/$site/follows/new, it looks like you'd have to prompt the user to authenticate themselves on Wordpress.com, get back a code, which you then ...
brianjohnhanna's user avatar
2 votes

How to get woocommerce subscription next payment date or date when subscription expires in woocommerce_subscription_renewal_payment_complete hook?

This one works for me: add_action( 'woocommerce_subscription_renewal_payment_complete', 'subscription_renewal_payment_complete', 11, 2 ); function subscription_renewal_payment_complete( $subscription,...
Stanlay Forker's user avatar
1 vote
Accepted

Plugin to allow for recurrent subscription + exclusive content

You probably need a couple plugins to do this. I use Woocommerce for just about everything - there is a ton of plugins and a lot of support online. Get Woocommerce for free through the wordpress ...
Doug Higson's user avatar
1 vote
Accepted

Change sign up fee in cart for subscription products WooCommerce

add_action( 'woocommerce_before_calculate_totals', 'change_subscription_signup_fee', 1000, 1 ); function change_subscription_signup_fee( $cart ) { if (is_admin() && !defined('DOING_AJAX')) ...
mujuonly's user avatar
  • 164
1 vote
Accepted

Problem with add_action

Yo don't properly call the callback function. If you want to code on oriented object programmation, you have to create your class, and construct function with add_action... Here more informations ...
Vincent Guesné's user avatar
1 vote

How to change a WooCommerce Subscription Deposit and Monthly Payment?

I THINK I have achieved what I want in this far more simple fee hook, found here https://stackoverflow.com/questions/43415783/change-cart-total-price-in-woocommerce: function prefix_add_discount_line(...
Laurence Cope's user avatar
1 vote

How to disable the "Upgrade or Downgrade" button in "My account" of WooCommerce Subscriptions

I have found/made the code that works. Maybe it helps somebody else. /** * Remove the "Upgrade or Downgrade" button from the My Subscription table if the user's role is "subscriber_plus&...
Frotmans's user avatar
1 vote
Accepted

How to differentiate between email subscription list and blog subscription list?

You can try using Email Subscribers & Newsletters plugin. You can use it to manage all blog post notification emails and newsletters in one single place.
Md. Ehsanul Haque Kanan's user avatar
1 vote

Jetpack 'Blog Subscription' widget doesn't add emails to

Jetpack's Subscriptions feature relies on WordPress.com. The emails sent via the feature are not sent from your own server, but from WordPress.com. You will consequently want to contact the Jetpack ...
jeherve's user avatar
  • 469
1 vote
Accepted

Update Post Status On Woocommerce Payment Complete

Have you considered the WooCommerce action woocommerce_order_status_completed which is called when the order status is changed to wc-completed? It is called with the order id and the order object (...
S.V.'s user avatar
  • 126
1 vote
Accepted

Is it possible to install two mail plugins together in a single Wordpress site? How to do it?

You can install our WordPress plugin to synchronise your WordPress subscribers with your SendinBlue account and send newsletters. To do so, we invite you to refer to our step by step guide. In ...
SendinBlue's user avatar
1 vote

Is it possible to install two mail plugins together in a single Wordpress site? How to do it?

This shouldn't really be a problem. Just two plugins using the same function, but not actually simultaneously(even if they are both installed and activated at the same time). You could always disable ...
Magnus Guyra's user avatar
1 vote
Accepted

Synchronise Renewals on existing subscriptions

Yes a solution for this is to manually change the date in "Next payment" field in the Billing schedule box on each subscription A subscription can be unsynchronized by changing the next payment date ...
Prasad Nevase's user avatar
1 vote

How to get subscription key or id using Woocommerce Subscriptions

As long as you can get Order Id, you can can use this code. global $woocommerce; $order_id=12345;//PUT YOUR ORDER ID HERE $order = new WC_Order( $order_id ); foreach ( WC_Subscriptions_Order::...
Diaz Adhyatma's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible