update filter

This commit is contained in:
Thomas Patrick Levy 2019-05-09 15:49:03 -07:00
parent 57bbcf94b7
commit 4e58b098e5
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ function wc_template_redirect() {
}
// Trigger 404 if trying to access an endpoint on wrong page.
if ( is_wc_endpoint_url() && ! is_account_page() && ! is_checkout() && apply_filters( 'woocommerce_account_endpoints_on_wrong_page_not_found', true ) ) {
if ( is_wc_endpoint_url() && ! is_account_page() && ! is_checkout() && apply_filters( 'woocommerce_account_endpoint_page_not_found', true ) ) {
$wp_query->set_404();
status_header( 404 );
include( get_query_template( '404' ) );