2

What is the difference between the suppress_errors() function and the hide_errors() functionin wpdb class?

What is the use of each function?

1 Answer 1

1
  • suppress_errors() hides errors during the database bootstrapping
  • hide_errors() hides SQL errors
2
  • So, the setting to hide errors is set by default right? We use hide_errors(false) only when we need to show errors?
    – rsman
    Commented Sep 7, 2010 at 11:21
  • Yes, hide errors is set by default. We use $wpdb->show_errors(); when we need to show them. For reference: codex.wordpress.org/Function_Reference/wpdb_Class
    – sorich87
    Commented Sep 7, 2010 at 12:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.