Hooks (PRO)

Going to Freesoul Deactivate Plugins => Settings => Hooks, you will be able to navigate the website and see all the action and filter hooks that run on the page.

Clicking on a hook, you will see a list of all the functions and classes that are connected to that hook and the path of the file where they are defined.

This feature is available only for PRO users.

You will also find a hook icon on the action buttons that show up when you go with your mouse on a row of the FDP settings. Clicking on that icon the page related to that row will open showing all the hooks that run on that page.

Hooks recorder (PRO)

Many times you need to hook a PHP function to an action like the enrollment of a user, a contact form submission, a product that is added to the cart, and so on.

If you need a tool to easily detect all the hooks that are registered during an action, the hooks recorder of FDP PRO is for you.

The procedure is very simple:

  • Go to Freesoul Deactivate Plugins => Tools => Hooks recorder
  • Start the recording
  • Do the action (e.g. load a page, submit a form, save the settings of a plugin…)
  • Stop the recording
  • Wait for a second, and you will see the recorded hooks

FDP will show you a table with all the hooks, including the hook’s information and a link to the file where the hook is defined.

Watch the video to see how you can record the hooks with FDP PRO.