26 Comments

  1. William Nguyen on September 13, 2021 at 3:01 am

    Thanks for all. It so helpful

  2. Wilson on September 8, 2020 at 1:01 pm

    Thanks, it was helpful. But I need help because I only want to change the URL link to a custom page when the customer/user clicks on Logout. So please how do I do that?

    Regards.

  3. Alex on June 25, 2020 at 4:49 pm

    Hi. great post.
    I’ve had a doubt a long time ago:
    How can I merge tabs from the “MY ACCOUNT” page?
    I want to merge Woocommerce Membership information to improve the user experience.
    I have seen that it is possible between tabs that come by default in woocommerce.
    Is it possible with “Memberships” being an additional plugin?
    I would like to merge “ACCOUNT DETAILS” (woocommerce) with MANAGE ” (Memberships) which contains the membership details.
    Thank you!

  4. John on August 7, 2019 at 7:38 pm

    Great post, but I am wondering how I can actually locate this function wc_get_account_menu_items() when i am logged into my WP. I went through all the php files, and I could not locate it.

  5. CMS on June 12, 2019 at 1:34 am

    Changing the My Account Endpoints Order work perfectly. Thank you

  6. Skynet on May 22, 2018 at 11:51 am

    Hi,

    Thank you for sharing this code, the order of endpoints works well, but the problem is that my icons have disappeared, how to solve this problem?

    Screenshot of missing icons :
    http://zupimages.net/viewer.php?id=18/21/dq7u.jpg

    Screenshot that icons before ordering endpoints :
    http://zupimages.net/viewer.php?id=18/21/6dx3.jpg

  7. gavsiu on March 14, 2018 at 10:40 pm

    Just an FYI, “Changing the Entry Title of the Custom Endpoint” doesn’t work well if you’re using `woocommerce_breadcrumb()` as it changes the My Account page title where you pasted the shortcode.

    So while the title of the page may say “My Orders”, the breadcrumb will be:

    Home > My Orders > Orders

    Instead of:

    Home > My Account > My Orders

  8. xturgorex on January 21, 2018 at 11:49 pm

    Really great stuff here. Thank you

  9. James Rodriguez on January 18, 2018 at 11:08 pm

    Thnx for the great article!!

    I am trying to add a page url as content to a custom endpoint, which essentially means the custom end-point should point to a specific page url.

    Any ideas how to accomplish that?

    Also, do you think I should create the page in question as a child page of My-Account page?

    • NerdBuilt on March 16, 2018 at 5:14 am

      ‘../page-name’ => __( ‘Page Name’, ‘woocommerce’ ),

      ../ puts you at the root of your domain.

  10. Chaos on April 4, 2017 at 1:23 pm

    Thank for the post.
    Can you please let me know where these files are to be placed?
    I tried putting in function.php , but it did not work for me.
    Thanks

  11. Kevin on March 26, 2017 at 9:46 am

    subscribing to replies from my previous comment.

  12. Jesus Sanchez Rodriguez on January 19, 2017 at 1:47 am

    THANKS!! U ARE MY HERO

  13. EJ Bayron on December 27, 2016 at 2:15 am

    Thanks for the info. I want to put icons look like this http://prntscr.com/doa6oy. Any help is appreciated. Thank you so much.

  14. Dave Green on November 4, 2016 at 3:25 pm

    Do you know if there’s a hook to save form field data when a form is submitted from your custom endpoint tab?

    Cheers,
    Dave

  15. Nicolas on October 26, 2016 at 5:52 pm

    Hi there!
    Is there a way to add a custom endpoints that opens in the right panels, i.e. the woocommerce menu stays visible on the left?
    Thanks!

  16. erik on September 27, 2016 at 3:27 pm

    Hi!) hide the payment method my account page woocommerce ?)

  17. Ash Scott on August 29, 2016 at 8:54 pm

    Spot on. This has saved me a lot of time before – I’ve even made it a sublime snippet :) Thanks!

  18. Tarnya on August 17, 2016 at 8:34 am

    Very helpful. I am working on a woocommerce site with buddypress (woocommerce members with subscriptions), so having a link to “dashboard” on the my account page was confusing. So I change it to say “my account” and it’s clear users need to go to the top buddypress menu to get to their “dashboard”. A dynamic endpoint as Vivian asked about above would be better.

  19. Josh Fisher on July 19, 2016 at 11:33 am

    How do we save, there is no save button in the form Ive implemented it added my own custom form fields but you dont mention how to save the form ? because doesn’t work, and Ive googled around but cant find an answer, I thought of adding a form action but I couldn’t send it to the options.php could I ?

  20. Vivian on June 26, 2016 at 9:44 pm

    I want to create an dynamic endpoint that points to the forum (bbpress) profile. Any help?

    • Garry Mitchell on August 1, 2016 at 10:30 am

      I am looking into doing the same. The addition of Endpoints requires a flush of the URL rewrite (permalinks) rules. So, I think we will need to create a static end-point, then redirect based upon the current user to the relevant bbPress page.
      I’ll bookmark this page and come back once I’ve done it.

  21. Jeff on June 24, 2016 at 5:46 pm

    Nevermind. It was the priority on the filter. *sigh* Must need another cup of coffee!

    Thanks for the post. It fit the bill!

  22. Jeff on June 24, 2016 at 5:42 pm

    Changing the entry-title isn’t working for me. I have WooCommerce v. 2.6.1 and the latest WordPress. Here’s my code:


    /*
    * Filter entry title for My Account endpoints
    */
    function cl_filter_my_account_endpoint_entry_title($title, $id) {

    if (is_wc_endpoint_url('orders') && in_the_loop()) {

    $title = "My Quotes";
    }

    return $title;
    }
    add_filter( 'the_title', 'cl_filter_my_account_endpoint_entry_title', 10, 2 );

    Looks like it should work. Any ideas why not? I’m not seeing any error messages in my log.

  23. Tim Graham on June 23, 2016 at 6:16 am

    Thanks for this. It was a great help!

Leave all Comment