Huang Cong: wordpress debugging process display only 500 errors, no error content

Add the following code in the functions.php file:

add_filter('wp_die_handler', 'get_my_custom_die_handler');
function get_my_custom_die_handler( $message, $title='', $args=array() ) {
    exit;
}

 

Guess you like

Origin www.cnblogs.com/huangcong/p/11332625.html