um_profile_active_tab

Hook type

Filter

Description

Change active profile tab

Parameters

$tab

(string) Active Profile tab

Usage

<?php add_filter( 'um_profile_active_tab', 'function_name', 10, 1 ); ?>

Examples

<?php
add_filter( 'um_profile_active_tab', 'my_profile_active_tab', 10, 1 );
function my_profile_active_tab( $tab ) {
    // your code here
return $tab;
}
?>

Change Log

Since: 2.0

Source

um_profile_active_tab is located in includes/core/class-profile.php::line 223