21 Comments

  1. 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

  2. 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

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

    Really great stuff here. Thank you

  4. 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.

  5. 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

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

    subscribing to replies from my previous comment.

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

    THANKS!! U ARE MY HERO

  8. 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.

  9. 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

  10. 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!

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

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

  12. 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!

  13. 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.

  14. 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 ?

  15. 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.

  16. 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!

  17. 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.

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

    Thanks for this. It was a great help!

Leave a Comment