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 > Remove TranslatePress Hooks

Remove TranslatePress Hooks

Browse Docs
Search Documentation

If you need further custom work, you can deactivate all essential hooks using this code example. The code needs to be placed in a plugin, not in functions.php file from the theme because of hook precedence. The hook is executed very early, on plugins_loaded action.

If the project requires you to place the code in functions.php, you will have to use a different approach to removing hooks. Here’s an example on how to get the component object that you need: