• Hello,

    Based on the thread linked, I wanted to re-open a discussion asking about the hooks this plugin sets up for changes in a subscription status. For get the status of a subscription that is cancelled, expired, etc, is there a name for these hooks? Otherwise is there existing documentation on using these hooks?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Alberto Martin

    (@albertomrtn)

    Hi @iamchris48,

    We do not have an exclusive documentation with the hooks that exist, but if you are using the premium version of the plugin, you can write to our support service at yithemes.com/my-account, otherwise it could be misleading for other users here on www.remarpro.com. Don’t worry, our support developers will definitely help you solve the problem or questions you may have.

    Hi @albertomrtn (or @yithemes),

    To be clear, the question by @iamchris48 asking for documentation for (or the name and location of) hooks to subscription status, you are saying that:

    1. There is no documentation on hooks within YITH Subscriptions, and
    2. Purchasing the premium version of the plugin will get access to developers who can answer the question.

    Is that what you are saying?

    Plugin Support Alberto Ruggiero

    (@witcher83)

    Hello @carverlab and @iamchris48,

    I’m sorry but there was a misunderstanding since in the topic mentioned by @iamchris48 there was a reference to the Premium version, for this reason, my colleague said that about the Premium version.
    However, it is also true that at the moment we do not have documentation of the hooks available in the plugin but doing a quick search of the do_action and theapply_filters you can find these hooks:

    do_action( 'ywsbs_subscription_status_' . $new_status, $this->id );
    do_action( 'ywsbs_subscription_status_' . $old_status . '_to_' . $new_status, $this->id );
    do_action( 'ywsbs_subscription_status_changed', $this->id, $old_status, $new_status );

    Where $this->id is the ID of the current subscription.

    Hope this helps.

    Thanks for clarifying, @albertomrtn.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Subscription Status Hooks’ is closed to new replies.