Advertisement
bphelp

Allow PHP in Posts and Pages Profile Link Reference

Sep 21st, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. // 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.:
  2.  
  3. [php]if ( is_user_logged_in() ) {[/php]
  4. <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]
  5.  
  6.  
  7. // If you just want the link without using and image just use the below code instead:
  8.  
  9. [php]if ( is_user_logged_in() ) {[/php]
  10. <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