Filter: um_change_default_tab

apply_filters( 'um_change_default_tab', $tab, $args ) → {string}

Filters Account shortcode default tab.

Parameters:
Name Type Description
$tab string

Current account tab.

$args array

Shortcode arguments.

Since:
  • 2.0
Source:
Returns:

Current account tab.

Type
string
Example

Change Account default tab to Password.

function my_um_change_default_tab( $tab, $args ) {
    $tab = 'password';
    return $tab;
}
add_filter( 'um_change_default_tab', 'my_um_change_default_tab, 10, 2 );