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()
Return Return
(string)
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 : ''; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: