Skip to content

Function

Get the action URL.

tml_get_action_url( string|Theme_My_Login_Action $action = '', string $scheme = 'login', bool $network = null )

Parameters

$action string|Theme_My_Login_Action Default ''
The action name or object.
$scheme string Default 'login'
The URL scheme.
$network bool Default null
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

VersionDescription
7.0 Introduced.