Function
Get the action URL.
tml_get_action_url( string|Theme_My_Login_Action $action = '', string $scheme = 'login', bool $network = null )
Parameters
-
$actionstring|Theme_My_Login_Action Default'' - The action name or object.
-
$schemestring Default'login' - The URL scheme.
-
$networkbool Defaultnull - Whether to retrieve the URL for the current network or current blog.
Return
string
The action URL.
Source
function tml_get_action_url( $action = '', $scheme = 'login', $network = null ) {
$action = tml_get_action( $action );
if ( ! $action ) {
return;
}
return $action->get_url( $scheme, $network );
}
Uses
Used by
Changelog
| Version | Description |
|---|---|
| 7.0 | Introduced. |