Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: View profile #86495
     Mirek
    Participant

    hi,
    Is it still possible to set sub tabs (‘edit’) as defaults when visiting profile ?

    cuz I can’t get it to work …

    COPY CODE
    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' => 'edit')
    	);
    }
    add_action( 'bp_setup_nav', 'my_change_profile_default_subnav', 5 );

    it’s give me 404 error.

    Thanks for any advice.
    Cheers
    Mirek

Viewing 1 post (of 1 total)

Log in with your credentials

Forgot your details?