16 votes

Select subscriber as author of post in admin panel?

As of WordPress 4.4.0 you can now use the wp_dropdown_users_args filter. The code is much simpler now: add_filter( 'wp_dropdown_users_args', 'add_subscribers_to_dropdown', 10, 2 ); function ...
user avatar
  • 426
4 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 = ...
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 ...
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. ...
user avatar
  • 1,051
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, $...
user avatar
  • 131
2 votes

Woocommerce comments subscription

Those options do not appear from the core but, they're are part of the Jetpack plugin. You should check with Jetpack files. Off-topic: I personally would prefer to disable these on Woocommerce pages. ...
user avatar
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, ...
user avatar
  • 14.7k
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 ...
user avatar
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 (...
user avatar
  • 126
1 vote

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,...
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 ...
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')) ...
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 ...
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(...
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 user role is "subscriber_plus". */ add_filter('...
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.
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 ...
user avatar
  • 470
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 ...
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 ...
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 ...
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::...
user avatar
1 vote

What are all these spam subscribers doing here?

I'll try to answer even though the questions are a bit generic: 1) Should I check anything else apart from deleting the new users and fixing the setting? When deleting a user from the admin, ...
user avatar
  • 316
1 vote

How to display Feedburner subscription count as plain text via a shortcode in post/page editor of my Wordpress blog?

I wrote a php script for it, is not a wordpress plugin , but is good point to start :) $fb_id = "Mashable"; // here your id account $fb_uri = "http://feeds.feedburner.com/~fc/"; $app_uri = "http://...
user avatar
  • 21

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