Skip to content

Instantly share code, notes, and snippets.

@kaseybon
Forked from jameskoster/header.php
Created August 12, 2014 20:26
Show Gist options
  • Save kaseybon/5c60f0c80318153f19e0 to your computer and use it in GitHub Desktop.
Save kaseybon/5c60f0c80318153f19e0 to your computer and use it in GitHub Desktop.
<?php if ( is_user_logged_in() ) { ?>
<a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('My Account','woothemes'); ?>"><?php _e('My Account','woothemes'); ?></a>
<?php }
else { ?>
<a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('Login / Register','woothemes'); ?>"><?php _e('Login / Register','woothemes'); ?></a>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment