Skip to content

Instantly share code, notes, and snippets.

@Musilda
Created January 5, 2019 17:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Musilda/3637b1f2af6e2f1296967bbee17f7d00 to your computer and use it in GitHub Desktop.
Save Musilda/3637b1f2af6e2f1296967bbee17f7d00 to your computer and use it in GitHub Desktop.
//Orders
wc_get_account_endpoint_url( get_option( 'woocommerce_myaccount_orders_endpoint', 'orders' ) );
//Downloads
wc_get_account_endpoint_url( get_option( 'woocommerce_myaccount_downloads_endpoint', 'downloads' ) );
//Edit Address
wc_get_account_endpoint_url( get_option( 'woocommerce_myaccount_edit_address_endpoint', 'edit-address' ) );
//Payment Methods
wc_get_account_endpoint_url( get_option( 'woocommerce_myaccount_payment_methods_endpoint', 'payment-methods' ) );
//Edit Account
wc_get_account_endpoint_url( get_option( 'woocommerce_myaccount_edit_account_endpoint', 'edit-account' ) );
//Customer Logout
wc_get_account_endpoint_url( get_option( 'woocommerce_logout_endpoint', 'customer-logout' ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment