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()


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/class.llms.view.manager.php


			

Top ↑

Changelog 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.

Top ↑

User Contributed Notes User Contributed Notes

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