This is the PHP code:
function my_profile_link() {
global $bp;
if ( $bp->loggedin_user->id )
echo ‘loggedin_user->domain . $bp->profile->slug . ‘/”>Profile‘;
}
I’m getting the error: “Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ‘,’ or ‘;'” on the line:
echo ‘loggedin_user->domain . $bp->profile->slug . ‘/”>Profile‘;
I didn’t write this code (I don’t know anything about PHP), I’m just using it.
Change >
to >