How to make “Profile” the default tab without editing wp-config?
-
I’m trying to make ‘Profile’ the default tab in member profiles in my theme, and need to do it without having to edit wp-config. Has anyone figured out a way?
A couple of ways are shown in the following post and both work, but they require editing of wp-config. Not good for me. http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/customizing-buddypress-profile-page-default-tab-and-item-nav-order/
-
Are you able to sneak the setting in at the top of functions.php? Or is this for a plugin you’re developing?
It’s for a theme I’m developing and yes, I can put it in functions.php (he says, mouth watering in anticipation…)
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

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

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?
OK. Ticket filed for suggested enhancement: https://trac.buddypress.org/ticket/3007
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

- The topic ‘How to make “Profile” the default tab without editing wp-config?’ is closed to new replies.