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.


Top ↑

Return Return

(string)


Top ↑

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 ) );
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.23.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.