@wojciechr
Active 10 months, 3 weeks ago
-
Wojciech started the topic bp_init | get displayed user in the forum How-to & Troubleshooting 10 months, 3 weeks ago
Hi,
befor I updated to V12 I used bp_init hook to set the default profile tab by using BP_DEFAULT_COMPONENT. In my case I set a new default tab only on the users own pages like this:
if ( bp_is_user() ) {
$current_user = get_current_user_id();
$displayed_user = $bp->displayed_user;
$displayed_user_id = $displayed_user->id;if…[Read more]