|

srfm_subscription_canceled

Description

Fires when a subscription is canceled.

Parameters

  • $canceled_record (object) – The canceled subscription record.
  • $payment_context (array) – Normalized payment context.

Hook Usage

PHP
add_action( 'srfm_subscription_canceled', 'my_callback', 10, 2 ); 
function my_callback( $canceled_record, $payment_context ) { 
// Revoke access tied to the subscription. 
}

Hook Example

PHP
add_action( 'srfm_subscription_canceled', 'my_callback', 10, 2 ); function my_callback( $canceled_record, $payment_context ) { 
// Revoke access tied to the subscription. 
}
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top