• Resolved Younes

    (@vanbom)


    Hi Support Team,
    I create a custom add-on for ProfilePress.
    I need to catch when the susbscription changed status, cancellled, expired….

    I tried : ppress_subscription_completed, ppress_subscription_cancelled ……
    none of them is executed.
    any help please

    • This topic was modified 3 years, 5 months ago by Younes.
Viewing 1 replies (of 1 total)
  • Plugin Author Collins Agbonghama

    (@collizo4sky)

    Those hooks definitely works and are fired. There are conditions before they are fired.

    For example ppress_subscription_completed: this is only fired if the subscription is cancelled.

    Maybe use the ppress_subscription_status_updated hook which is trigged whenever there is a subscriptuon status change.

    Here’s the hook definition

    do_action('ppress_subscription_status_updated', $subscription_status, $old_status, $this);

Viewing 1 replies (of 1 total)

The topic ‘ppress_subscription_* Actions Hook’ is closed to new replies.