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:

TranslatePress Multilingual

The best website localization service for WordPress websites. Manage everything from a visual interface.