LLMS_Product::get_pricing_table_columns_count( boolean $free_only = false )

Get the number of columns for the pricing table


Description Description


Parameters Parameters

$free_only

(boolean) (Optional) only include free access plans if true

Default value: false


Top ↑

Return Return

(int)


Top ↑

Source Source

File: includes/models/model.llms.product.php

	public function get_pricing_table_columns_count( $free_only = false ) {

		$count = count( $this->get_access_plans( $free_only ) );

		switch ( $count ) {

			case 0:
				$cols = 1;
			break;

			case 6:
				$cols = 3;
			break;

			default:
				$cols = $count;
		}
		return apply_filters( 'llms_get_product_pricing_table_columns_count', $cols, $this, $count, $free_only );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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