public function debug_on() { global $wpdb; // Set MySQL strict mode. //$wpdb->show_errors(); //$wpdb->query( "SET @@sql_mode = 'TRADITIONAL'" ); // Enable BD debugging. WPBDP_Debugging::debug_on(); }