Introducing TranslatePress AI The fastest way to translate your WordPress Website
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: