LLMS_Course::get_sales_page_url()

Get the URL to a WP Page or Custom URL when sales page redirection is enabled


Description Description


Return Return

(string)


Top ↑

Source Source

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

	public function get_sales_page_url() {

		$type = $this->get( 'sales_page_content_type' );
		switch ( $type ) {

			case 'page':
				$url = get_permalink( $this->get( 'sales_page_content_page_id' ) );
			break;

			case 'url':
				$url = $this->get( 'sales_page_content_url' );
			break;

			default:
				$url = get_permalink( $this->get( 'id' ) );

		}

		return apply_filters( 'llms_course_get_sales_page_url', $url, $this, $type );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.20.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: