Skip to content

Instantly share code, notes, and snippets.

@jorgejaramillo
Forked from jameskoster/header.php
Created April 12, 2012 03:05
Show Gist options
  • Save jorgejaramillo/2364394 to your computer and use it in GitHub Desktop.
Save jorgejaramillo/2364394 to your computer and use it in GitHub Desktop.
WooCommerce - Link de la cuenta
<?php if ( is_user_logged_in() ) { ?>
<a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" rell="nofollow" title="<?php _e('Mi Cuenta','woothemes'); ?>"><?php _e('Mi Cuenta','woothemes'); ?></a>
<?php }
else { ?>
<a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" rell="nofollow" title="<?php _e('Ingresar / Registro','woothemes'); ?>"><?php _e('Ingresar / Registro','woothemes'); ?></a>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment