New!

Introducing TranslatePress AI The fastest way to translate your WordPress Website

Learn More
0
Days
0
Hours
0
Minutes
0
Seconds

Last Chance Sale 25% OFF! Our only sale of the year ends soon!

Use Discount code BF2024 at Checkout. Bottom link

Documentation > Developers > Disable SQL errors notices

Disable SQL errors notices

Browse Docs
Search Documentation

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.