arm_user_plan_status_action_{$action}

This action will be executed immediately when specific action occurs like 'cancel payment', 'failed payment by payment gateway' or 'membership plan expires'.

Hook Type: Action
Usage:
add_action( 'arm_user_plan_status_action_failed_payment', 'your_function', 10, 2);
add_action( 'arm_user_plan_status_action_cancel_payment', 'your_function', 10, 2);
add_action( 'arm_user_plan_status_action_eot', 'your_function', 10, 2);
function your_function($args, $plan_detail) {
    //Do Your Action
    //$args Array of plan_id, user_id & action. action: 'failed_payment', 'cancel_payment', & 'eot'.
    //$plan_detail Plan Details.
}
Parameters:
$args
Array of plan_id, user_id & action. action: ‘failed_payment’, ‘cancel_payment’, & ‘eot'(end of term)
$plan_detail
Plan Details