Skip Navigation

[Resolved] Woocommerce my account endpoint

This support ticket is created 4 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by heikoS 4 years ago.

Assisted by: Waqar.

Author
Posts
#1911203

Hello,

I let wp-users post a custom post type and charge this with woocommerce. This all works perfect.

How can I show only the posts from the user in a extra endpoint on the my_account page from woocommerce? I want them to see the link to their post and the expiring date.

Heiko

#1911549
post-author-filter-blocks.png

Hi,

Thank you for contacting us and I'd be happy to assist.

To create a list of posts where the current logged-in user is the author, you can create a post view, with post author filter.
( example screenshot attached )

Here is a guide on creating post views:
https://toolset.com/lesson-placement/lesson-placements-1621261-1622283/

To add an additional end point to my accounts page in WooCommerce, you'll need to add some code customization, as explained in this tutorial:
hidden link

Note: To get a post view's output in a PHP code, you can use the "render_view" function:
https://toolset.com/documentation/programmer-reference/views-api/#render_view

regards,
Waqar

#1911895

My issue is resolved now. Thank you!