Add_rewrite_endpoint doesn’t work with post name permalink structure
I would avoid using add_rewrite_endpoint() directly to register account page endpoints in WooCommerce. WooCommerce has a filter that you can use that make sure everything else works properly, like the endpoint title filter and calls to is_wc_endpoint_url(). So add the endpoint with the woocommerce_get_query_vars filter: add_filter( ‘woocommerce_get_query_vars’, function( $query_vars ) { $query_vars[‘conversations’] = ‘conversations’; return … Read more