Disable SQL errors notices

TranslatePress has a system that tracks SQL errors and helps you display them.

This system can be disabled in some cases, for example:

  • false positives
  • errors that announce various problems, these being false.

With the help of this code, TranslatePress no longer:

  • records SQL errors
  • prevents admin notices from appearing
  • and disables automatic translation

If you want to insert this custom code, follow these steps:

1. Create an empty plugin like this:
https://gist.github.com/sareiodata/76f701e01db6685829db

2. Add the following code to the end of it:

add_filter('trp_disable_error_manager','__return_true');

 

3. Install this plugin via FTP (copy it inside wp-content/plugins) or create a zip archive with it and install it via the WordPress plugin upload functionality.

Looking to go multilingual?

Get full access to TranslatePress and join 200.000+ website owners that grow their multilingual traffic.

Unlock PREMIUM Features

Or download FREE version