apply_filters( 'llms_check_access_plan_purchasable', true|WP_Error $can_purchase , LLMS_Access_Plan|null $plan , int|null $user_id )
Filters whether an access plan can be purchased during checkout.
Parameters Parameters
- $can_purchase
-
(true|WP_Error) Whether the plan can be purchased.
trueif it can, aWP_Errorotherwise. - $plan
-
(LLMS_Access_Plan|null) The access plan being purchased.
- $user_id
-
(int|null) WP_User ID of the purchasing user, or
nullfor the current user.
Source Source
Changelog Changelog
| Version | Description |
|---|---|
| 10.0.8 | Introduced. |