黃聰:wordpress調試過程只顯示500錯誤,不顯示錯誤內容

在functions.php文件添加以下代碼:php

add_filter('wp_die_handler', 'get_my_custom_die_handler');
function get_my_custom_die_handler( $message, $title='', $args=array() ) {
    exit;
}
相關文章
相關標籤/搜索