What is the WordPress `wpdb::$show_errors` property and what is the recommended production setting?

WordPress Expert Medium

WordPress Expert — Medium

What is the WordPress `wpdb::$show_errors` property and what is the recommended production setting?

Key points

  • `wpdb::$show_errors` controls database error display
  • Production setting should be false to prevent SQL exposure
  • Errors should be logged for security
  • Transparency doesn't require showing errors on-screen

Ready to go further?

Related questions