• in public function __construct(), add:

    $this->supports = array('subscriptions');

    after

    $this->init_settings();

    and your plugin will support Woocommerce Subscriptions

    • This topic was modified 2 years, 10 months ago by Alex Raven.
Viewing 1 replies (of 1 total)
  • For more complete Subscriptions support, you may want to use this instead:

    $this->supports = array(
        'subscriptions',
        'subscription_cancellation',
        'subscription_suspension',
        'subscription_reactivation',
        'subscription_amount_changes',
        'subscription_date_changes',
        'subscription_payment_method_change',
        'subscription_payment_method_change_customer',             
        'subscription_payment_method_change_admin',
        'multiple_subscriptions',
    );

    I had to test switching between Variable Subscriptions and I ended up finding the above listing in https://ww.wp.xz.cn/plugins/woocommerce-gateway-stripe

Viewing 1 replies (of 1 total)

The topic ‘Suggestion: add support for subscriptions’ is closed to new replies.