How to disable the fatal error (WSOD) protection?

We can modify the bool output of the wp_is_fatal_error_handler_enabled() function in two ways: Constant Set the WP_DISABLE_FATAL_ERROR_HANDLER constant to true within the wp-config.php file: /** * Disable the fatal error handler. */ const WP_DISABLE_FATAL_ERROR_HANDLER = true; or define( ‘WP_DISABLE_FATAL_ERROR_HANDLER’, true ); Filter Use wp_fatal_error_handler_enabled bool filter: /** * Disable the fatal error handler. */ add_filter( … Read more

Change login error messages

you can do that using login_errors filter hook and here is how: add_filter(‘login_errors’,’login_error_message’); function login_error_message($error){ //check if that’s the error you are looking for $pos = strpos($error, ‘incorrect’); if (is_int($pos)) { //its the right error so you can overwrite it $error = “Wrong information”; } return $error; } update: i just tested the code and … Read more

Showing errors with $wpdb update

I would recommend running the following code right after your query to see what’s happening: exit( var_dump( $wpdb->last_query ) ); This should print the last query that hit your database. In cases like these, I usually will manually run such a query through phpMyAdmin to see if it runs without errors and to see if … Read more