Skip to:
Content
Pages
Categories
Search
Top
Bottom

Is it possible to make a specific profile subtab the default for a profile?


  • Arp Laszlo
    Participant

    @echoleaf

    I found a method via Googling that does not work:

    function my_change_profile_default_subnav() {
        global $bp;
        bp_core_new_nav_default(array( ‘parent_slug’ => $bp->profile->slug, 
     ‘screen_function’ => ‘bp_profile_screen_edit’,
     ‘subnav_slug’ => ‘all-activity’)
     );
    }
    add_action( ‘bp_setup_nav’, ‘my_change_profile_default_subnav’, 5 );

    Is there an updated version of this code?

Viewing 4 replies - 1 through 4 (of 4 total)

  • Arp Laszlo
    Participant

    @echoleaf

    * nudge *


    delia
    Participant

    @delia

    There are other bits of code running around here but I haven’t been able to get it to work either. Need up to date info and this is really something that should be spelled out in the documentation. It was the first change I wanted to make.


    delia
    Participant

    @delia

    Finally I found it

    put in your wp-config.php file
    define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ );

    Too easy and should be way more accessible. This was the second session I spent with this after the first had tons of coding that didn’t work.


    Arp Laszlo
    Participant

    @echoleaf

    Thanks. Any idea how I’d do that for a profile subtab?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar