Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // To add an edit profile link using the Allow PHP in Posts and Pages plugin for Wordpress use the below code. Just change the src= to correspond with the path of your image as well as width, height, etc.:
- [php]if ( is_user_logged_in() ) {[/php]
- <a href="[php] echo bp_loggedin_user_domain() . 'profile/edit/group/2/'; [/php]"><img class="aligncenter size-full wp-image-?" alt="Update Profile Now" src="http://yoursite.com/remaining-path-to-your-image" width="?" height="?" /></a>[php]}[/php]
- // If you just want the link without using and image just use the below code instead:
- [php]if ( is_user_logged_in() ) {[/php]
- <a href="[php] echo bp_loggedin_user_domain() . 'profile/edit/group/2/'; [/php]">Edit My Profile</a>[php]}[/php]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement