Cookbook › Themes
List functions and hooks in a draft theme file
Paste into ChatGPT or ClaudeIn my existing AI Puffer theme draft, list the functions and WordPress hooks in functions.php, with line numbers and the file hash. Do not change anything.
Reads only. Nothing on your site changes, at any safety level.
What happens
Section titled “What happens”- Your assistant reads the structure of the named PHP file in your theme draft.
- It lists declared functions, classes and methods, plus hooks written directly in the code, with line numbers and a file hash to identify that version.
- You can then ask it to read a specific section before proposing an edit. The file is not executed or changed.
Try also
Section titled “Try also”- “Show the class and method declarations in the draft’s inc/setup.php.”
Good to know
Section titled “Good to know”- Available on paid plans. You must own the theme draft and have permission to edit themes. Your host may restrict file access.
- PHP files only, up to 60 KB and 200 results. To inspect CSS or JavaScript, ask your assistant to read or search the file instead.
- Each successful file outline uses one website action and no AI credits. Only files in your AI Puffer theme draft can be inspected. The active theme is unchanged.