update filter
This commit is contained in:
parent
57bbcf94b7
commit
4e58b098e5
|
@ -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' ) );
|
||||
|
|
Loading…
Reference in New Issue