llms_get_access_plan_classes( LLMS_Access_Plan $plan )
Retrieve a list of CSS classes for a single access plan element
Parameters Parameters
- $plan
-
(LLMS_Access_Plan) (Required) Access plan object.
Return Return
(string)
Source Source
File: includes/functions/llms.functions.templates.pricing.table.php
function llms_get_access_plan_classes( $plan ) { $classes = array( 'llms-access-plan', sprintf( 'llms-access-plan-%d', $plan->get( 'id' ) ), ); if ( $plan->is_featured() ) { $classes[] = 'featured'; } if ( $plan->is_on_sale() ) { $classes[] = 'on-sale'; } return implode( ' ', apply_filters( 'llms_access_plan_classes', $classes, $plan ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.23.0 | Introduced. |