LLMS_Access_Plan::get_price( string $key, array $price_args = array(), string $format = 'html' )

Getter for price strings with optional formatting options


Description Description


Parameters Parameters

$key

(string) (Required) property key

$price_args

(array) (Optional) array of arguments that can be passed to llms_price()

Default value: array()

$format

(string) (Optional) format conversion method [html|raw|float]

Default value: 'html'


Top ↑

Return Return

(mixed)


Top ↑

Source Source

File: includes/models/model.llms.access.plan.php

	public function get_price( $key, $price_args = array(), $format = 'html' ) {

		$price = $this->get( $key );

		if ( $price <= 0 ) {

			$ret = $this->get_free_pricing_text( $format );

		} else {

			$ret = parent::get_price( $key, $price_args, $format );

		}

		return apply_filters( 'llms_plan_get_price', $ret, $key, $price_args, $format, $this );
	}

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.





Permalink: