• Resolved joxyzan

    (@joxyzhan)


    According to WPUM 1.3.0 changelog “developers can now change the order of the tabs within the account page”. I can’t find any clear information on how to do it though.

    I’m already adding and renaming some profile and account tabs in mu-plugins/wpum.php like this:

    add_filter( 'wpum_get_registered_profile_tabs', 'my_wpum_get_registered_profile_tabs' );
    function my_wpum_get_registered_profile_tabs( $tabs ) {
       $tabs['about']['name'] = esc_html( 'Account' );
       $tabs['posts']['name'] = esc_html( 'Ads' );
       $tabs... (etc)
    return $tabs;
    }

    Can someone show me how to integrate ‘priority’ in those lines of code? Or do I need to add a separate line of code for each tab regarding priority?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change order of tabs’ is closed to new replies.