How to link to Topics, Replies, Subscriptions?
-
Im using the last bbPress version, and twenty-twenty theme. All fine!
But I need to integrate bbpress with woocommerce in a custom woocommerce dashboard we made, so basically I have to link all bbpress profile links (Topic created, Replies, Engagement…) as Woocommerce Endpoints.All set up but the problem is the links not showng the correct user information but : “Oh Bother, no topics found here!”. Despite the user has created topics , followed or subscribed.
This is the code I put for the Subscription Endpoint for instance:
add_action( 'init', 'wpsh_subscriptions_endpoint' ); function wpsh_subscriptions_endpoint() { add_rewrite_endpoint( 'subscriptions', EP_ROOT | EP_PAGES ); } add_action( 'woocommerce_account_subscriptions_endpoint', 'subscriptions_endpoint_content' ); function subscriptions_endpoint_content() { include get_theme_file_path( '/bbpress/templates/default/bbpress/user-subscriptions.php' ); }
so, any suggestions please? 🙂
- You must be logged in to reply to this topic.