apply_filters( 'llms_can_gateway_be_used_for_plan', boolean|WP_Error $can_be_used , string $gateway_id , LLMS_Access_plan $plan )
Filters whether or not a gateway can be used for a given access plan.
Parameters Parameters
- $can_be_used
-
(boolean|WP_Error) Whether or not the gateway can be used for the plan. This value will be
true
when the gateway can be used an an error object when it cannot. - $gateway_id
-
(string) The LLMS_Payment_Gateway ID.
- $plan
-
(LLMS_Access_plan) The access plan object.
Source Source
Changelog Changelog
Version | Description |
---|---|
7.0.0 | The filter now runs on all possible return values instead of running only when the gateway can be used. |
3.29.0 | Introduced. |