Display My Account link in a template file

Displays a link to the user account section. If the user is not logged in the link will display ‘Login / Register’ and take the use to the login / signup page. If the user is logged in the link will display ‘My account’ and take them directly to their account.

https://gist.github.com/woogists/f552b765d9d447dea43be9e9eb07490b


4 responses to “Display My Account link in a template file”

  1. […] Woothemes for this […]

  2. […] Thanks Woothemes for this snippet. […]

Leave a Reply

Your email address will not be published. Required fields are marked *