Profile edit URL
I want to add an “edit” button right next to the “log out” button, but i’m not sure what calls this the page. I checked the logged-in.php and found this:
<?php printf(__(‘Welcome, %1$s’), bb_get_profile_link(bb_get_current_user_info( ‘name’ )));?>
That generates “Welcome, username”
What code generates the “edit” button?
I checked the profile.php and I found that this code outputs an EDIT button:
<?php if (bb_current_user_can( ‘edit_user’, $user->ID )) : ?>
<?php printf(__(‘You may edit this information.’), esc_attr( get_profile_tab_link( $user_id, ‘edit’ ) ) ); ?>
<?php endif; ?>
The downpart of this code is, the output is only visible when you actually are on the profile page. I need something like this which is visible no matter which you page you are.
- You must be logged in to reply to this topic.