woocommerce shop url code example
Example 1: shop page url woocommerce
// Shop Page URL
$shop_page_url = get_permalink( woocommerce_get_page_id( 'shop' ) );
Example 2: shop page url woocommerce
// MyAccount Page URL
$myaccount_page_id = get_option( 'woocommerce_myaccount_page_id' );
if ( $myaccount_page_id ) {
$myaccount_page_url = get_permalink( $myaccount_page_id );
}