Skip to content

Cookbook › Themes

List functions and hooks in a draft theme file

Themes1 minuteReads onlyProTested 19 Oct 2026
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.

  1. Your assistant reads the structure of the named PHP file in your theme draft.
  2. 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.
  3. You can then ask it to read a specific section before proposing an edit. The file is not executed or changed.
  • “Show the class and method declarations in the draft’s inc/setup.php.”
  • 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.