New endpoint in my account gives 404 Error Woocommerce 3.6.5 and WP 5.2.2
Make sure you flush/re-save your settings in Permalinks > Settings whenever you add code the adds a rewrite endpoint or rule. Also, the most up to date and optimal way to add an account endpoint in WooCommerce would be to use the woocommerce_get_query_vars filter: /** * Register support endpoint. * * @param array $query_vars WooCommerce … Read more