×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Peter Goudkamp
Added: Mar 3, 2015 9:29 PM
Views: 16
Tags: no tags
You can get the WooCommerce My Account URL by using the woocommerce_myaccount_page_id option
  1. $myaccount_page_id = get_option( 'woocommerce_myaccount_page_id' );
  2. if ( $myaccount_page_id ) {
  3.   $myaccount_page_url = get_permalink( $myaccount_page_id );
  4. }