llms_get_page_url( string $page, array $args = array() )

Retrieve the URL for a LifterLMS Page EG: ‘checkout’, ‘memberships’, ‘myaccount’, ‘courses’ etc.


Description Description

..


Parameters Parameters

$page

(string) (Required) name of the page

$args

(array) (Optional) array of query arguments that can be passed to add_query_arg()

Default value: array()


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/functions/llms.functions.page.php

function llms_get_page_url( $page, $args = array() ) {
	$url = add_query_arg( $args, get_permalink( llms_get_page_id( $page ) ) );
	return $url ? $url : '';
}

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: