LLMS_Access_Plan::has_availability_restrictions()

Determine if the plan has availability restrictions


Description Description

Related product must be a COURSE. Availability must be set to "members" and at least one membership must be selected.


Top ↑

Return Return

(boolean)


Top ↑

Source Source

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

		return ( 'course' === $this->get_product_type() && 'members' === $this->get( 'availability' ) && $this->get_array( 'availability_restrictions' ) );
	}



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.