• Resolved katieduk1

    (@katieduk1)


    Hi,

    I’ve been struggling to find a way to do this for a while now.

    Is there a way to make listings the default open component tab when a profile loads on buddypress?

    • This topic was modified 4 years, 6 months ago by katieduk1.
Viewing 1 replies (of 1 total)
  • Thread Starter katieduk1

    (@katieduk1)

    Its ok figured it out myself

    define(‘BP_DEFAULT_COMPONENT’, ‘listings’ );
    add_filter( ‘bp_is_active’, function($retval, $component){
    if($component === ‘listings’) return true;
    return $retval;
    }, 10, 2 );

Viewing 1 replies (of 1 total)
  • The topic ‘Buddypress profile default component’ is closed to new replies.