LLMS_View_Manager::get_url( string $role, string|false $href = false, array $args = array() )
Get a view url for the requested view.
Description Description
Parameters Parameters
- $role
-
(Required) Role to view the screen as. Accepts "self", "visitor", or "student".
- $href
-
(Optional) The URL to create a URL for. If
false
, uses$_SERVER['REQUEST_URI']
.Default value: false
- $args
-
(Optional) Additional query args to add to the url.
Default value: array()
Return Return
(string)
Source Source
File: includes/class.llms.view.manager.php
Changelog Changelog
Version | Description |
---|---|
4.2.0 | Take into account already present query args. e.g. ?plan=X. |
4.16.0 | Changed method signature to add the $href parameter and changed access from private to public static. |
3.7.0 | Introduced. |