Determine if the plan has a trial offer One-time payments can’t have a trial, so the plan must have a frequency greater than 0

Return Return


Top ↑

Source Source

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

		$ret = false;
		if ( $this->get( 'frequency' ) > 0 ) {
			$ret = llms_parse_bool( $this->get( 'trial_offer' ) );
		return apply_filters( 'llms_plan_has_trial', $ret, $this );

Top ↑

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.