Skip to content

Function

Get the action slug.

tml_get_action_slug( string|Theme_My_Login_Action $action = '' )

Parameters

$action string|Theme_My_Login_Action Default ''
The action name or object.

Return

string The action slug.

Source

function tml_get_action_slug( $action = '' ) {
    $action = tml_get_action( $action );
    if ( ! $action ) {
        return;
    }
    return $action->get_slug();
}

Uses

Used by

Changelog

VersionDescription
7.0 Introduced.