Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP_DEFAULT_COMPONENT no longer working


  • KC
    Participant

    @kaseym

    Hi guys,

    I’ve using define(‘BP_DEFAULT_COMPONENT’, ‘dashboard’ ); in my functions.php but it’s no longer working since a few updates ago.

    I’m using a custom bp_core_new_nav_item

    bp_core_new_nav_item( array(
    		'name'                  => 'Dashboard',
    		'slug'                  => 'dashboard',
    		'parent_url'            => $bp->displayed_user->domain,
    		'parent_slug'           => $bp->profile->slug,
    		'screen_function'       => 'dashboard_screen',
    		'position'              => 1,
    		'default_subnav_slug'   => 'dashboard'
    	) );

    This no longer takes me to the dashboard function rather to the profile overview.

    Any ideas?

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

  • KC
    Participant

    @kaseym

    Just rolled back to 3.2.0 and this has now fixed it.


    wordplus
    Participant

    @wordplus

    Hi there!

    Meet same issue, with custom component, try to use next code to fix:

    add_filter( 'bp_is_active', function($retval, $component){
        if($component === 'dashboard') return true;
        return $retval;
    }, 10, 2 );

    shayne
    Participant

    @shayne-thiessen

    Having the same issue. Is this going to be fixed?

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