woocommerce_account_endpoint_page_not_found

woocommerce_account_endpoint_page_not_found

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_account_endpoint_page_not_found') is found 1 times:

  • /includes/wc-template-functions.php line 50
    		exit;
    	}
    
    	// 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_endpoint_page_not_found', true ) ) {
    		$wp_query->set_404();
    		status_header( 404 );
    		include get_query_template( '404' );
    		exit;
    	}