Redirect to custom page on fatal error
-
Hi,
when a plugin or theme causes a fatal error, WordPress shows the message “there has been a critical error on your website”.
Is it possible to redirect users to a custom error page in this case?
Something like this:
if ( is_critical_error() ) { wp_redirect( "https://mywebsite.com/critical.html" ); exit; }
Thanks. ??
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Redirect to custom page on fatal error’ is closed to new replies.