LLMS_Membership::get_sales_page_url()
Get the URL to a WP Page or Custom URL when sales page redirection is enabled
Contents
Return Return
(string)
Source Source
File: includes/models/model.llms.membership.php
* @return LLMS_Product
*/
public function get_product() {
return new LLMS_Product( $this->get( 'id' ) );
}
/**
* Retrieve the number of enrolled students in the membership.
*
* @since 3.32.0
* @since 6.0.0 Don't access `LLMS_Student_Query` properties directly.
*
* @return int
*/
public function get_student_count() {
$query = new LLMS_Student_Query(
array(
'post_id' => $this->get( 'id' ),
'statuses' => array( 'enrolled' ),
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.20.0 | Introduced. |