Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to make “Profile” the default tab without editing wp-config?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Are you able to sneak the setting in at the top of functions.php? Or is this for a plugin you’re developing?


    pcwriter
    Participant

    @pcwriter

    @djpaul

    It’s for a theme I’m developing and yes, I can put it in functions.php (he says, mouth watering in anticipation…)


    pcwriter
    Participant

    @pcwriter

    @djpaul

    Did you have something specific in mind?
    Or are you just encouraging further attempts from my feeble mind? ;-)

    Just what’s linked to in the previous post:

    `
    if ( ! defined( ‘BP_DEFAULT_COMPONENT’ ) )
    define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ );
    `

    Never been able to get this working in anything other than wp-config or bp-custom in functions.php it appears to be too late to be acknowledged – not useful in one wants portability via functions.php for a theme

    So, file a bug report if you feel it should work in functions.php :)

    No I won’t :P

    Personally never thought that it should work in functions.php, perhaps it should? not really sure, we’ll leave the bug reporting to pcwriter :)


    pcwriter
    Participant

    @pcwriter

    @djpaul @hnla

    I’ve tried this every which way but sideways, but can’t get it working either in functions.php. Too bad, it would have made a sweet addition to the theme options.

    As for reporting it; I don’t think it can be qualified as a bug. At most, an oversight. Maybe the utility of such a function hasn’t been brought to light until now?


    pcwriter
    Participant

    @pcwriter

    OK. Ticket filed for suggested enhancement: https://trac.buddypress.org/ticket/3007


    pcwriter
    Participant

    @pcwriter

    Lol… got a response in trac… from the same fellow who responded in this thread: can’t be done.

    At least now it’s official ;-)

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How to make “Profile” the default tab without editing wp-config?’ is closed to new replies.
Skip to toolbar