WordPress - how to find a function attached with hook?

3 replies
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,
#attached #find #function #hook #wordpress
  • Profile picture of the author noah.whitmore
    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
    Signature
    No Pitch For The Moment - Just A Nice Hello.
    So... 'Hello'
    Feel free to PM me if you have any questions about my posts. I'd like to hear from you!
    {{ DiscussionBoard.errors[10602041].message }}
  • Profile picture of the author ayazahmed
    I am doing something similar. Thanks for your help.
    Signature
    Website Developer, Custom WordPress Theme Designer, PSD to HTML/WP, SEO Expert
    My WSO: WordPress Expert Developer and Webmaster
    {{ DiscussionBoard.errors[10630170].message }}
  • Profile picture of the author wordpress+expert
    Hello! You can write a simple php script that will recursively open all folders and files, and search in them the desired structure.
    {{ DiscussionBoard.errors[10632987].message }}

Trending Topics