This filter will be useful to modify allowed payment gateways in a particular plan.
Hook Name: arm_allowed_payment_gateways
Hook Type: Filter
Source: core/classes/class.arm_membership_setup.php
Usage:
add_filter( 'arm_allowed_payment_gateways', 'your_function', 10, 2);
function your_function($allowed_gateways,$plan_obj,$plan_options){
//your custom functionality
return $allowed_gateway;
}
Parameters:
$allowed_gateways
Array of allowed gateways
$plan_obj
Object of plan.
$plan_options
Array of plan options.