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

Retrieve the URL for a LifterLMS Page.


Description Description

EG: ‘checkout’, ‘memberships’, ‘myaccount’, ‘courses’ etc…


Top ↑

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.