WordPress - how to find a function attached with hook?

by 3 replies
3
Hi,

I am editing a custom theme with woocommerce and so many other plugins. Is there a way or tool to find a function attached with a hook? or downloading entire theme and all plugins to a local folder and searching is the only way?

Regards,
#programming #attached #find #function #hook #wordpress
  • I cannot think of a tool that does what you're looking for. However, most themes will put their hooks in the functions.php file. Perhaps just take a look at that one file to see if you can find it.

    Honestly though, just grab Filezilla (https://filezilla-project.org/download.php?type=client) and it's not too tough to download everything onto your own machine. Then, use Notepad++ (https://notepad-plus-plus.org/download/v6.9.html) to search for the function. Notepad++ has the functionality to search for a phrase in all the files in a given folder. Can't tell you how many times I have used that feature!

    - Noah
    • [ 1 ] Thanks
  • I am doing something similar. Thanks for your help.
  • Hello! You can write a simple php script that will recursively open all folders and files, and search in them the desired structure.

Next Topics on Trending Feed