API Category: Membership Plan Hooks

arm_apply_plan_to_member

Usage: do_action( ‘arm_apply_plan_to_member’, $plan_id, $user_id); Parameters: $plan_id Membership Plan ID $user_id Existing User ID to whom you want to assign a new membership plan.

Read More

arm_before_update_user_subscription

Usage: add_action( ‘arm_before_update_user_subscription’, ‘your_function’, 10, 2); function your_function($user_id = 0, $new_plan_id=0) { //Do Your Action //$user_id User ID. //$new_plan_id New Plan ID. } Parameters: $user_id User ID $new_plan_id New Plan ID

Read More

arm_user_plan_status_action_{$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 […]

Read More

arm_deleted_subscription_plan

Usage: add_action( ‘arm_deleted_subscription_plan’, ‘your_function’, 10, 2); function your_function($plan_id, $plan_data) { //Do Your Action //$plan_id Deleted Plan ID. //$plan_data Deleted Plan Details. } Parameters: $plan_id Deleted Plan ID $plan_data Deleted Plan Details

Read More

arm_saved_subscription_plan

Usage: add_action( ‘arm_saved_subscription_plan’, ‘your_function’, 10, 2); function your_function($plan_id, $plan_data) { //Do Your Action //$plan_id Added/Updated Plan ID. //$plan_data Added/Updated Plan Details. } Parameters: $plan_id Added/Updated Plan ID $plan_data Added/Updated Plan Details

Read More

arm_save_subscription_plans

Usage: add_action( ‘arm_save_subscription_plans’, ‘your_function’); function your_function($posted_data) { //Do Your Action //$posted_data Posted Subscription Plan Details. } Parameters: $posted_data Posted Subscription Plan Details

Read More
Welcome to ARMember
Fancy getting all offers and update notifications?
Subscribe
Give it a try, you can unsubscribe anytime.
Close