Custom Tab – make it as primary tab
-
function custom_tab_3( $tabs ) { $hide_from_roles_3otab = array('um_custom_role_2','um_custom_role_3', 'administrator'); if (is_user_logged_in() && !in_array(um_user('role'), $hide_from_roles_3otab)) { $tabs[ 'aggelies' ] = array( 'name' => 'Οι αγγελ?ε? μου', 'custom' => true ); } UM()->options()->options[ 'profile_tab_' . 'aggelies' ] = true; return $tabs; } add_filter( 'um_profile_tabs', 'custom_tab_3', 2 );
I have the above code, and I am trying to make this tab the “active” tab of the profile. By active, I mean when the user visits their profile, to be this as the first one that is already “clicked”. Any ideas?
Best Regards
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Custom Tab – make it as primary tab’ is closed to new replies.