Function
Get the action slug.
tml_get_action_slug( string|Theme_My_Login_Action $action = '' )
Parameters
-
$actionstring|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
| Version | Description |
|---|---|
| 7.0 | Introduced. |