Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Theme Hooks -- Let's get on it!
tree: 35691766cd

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

Theme Hook Alliance

What? ##

Let's all come together and agree on a nice standard set of WordPress theme hooks.


Original idea here.


  • Hooks are generally of the form tha_ + [section of the theme] + _[placement within block]
  • Hooks should be suffixed based upon their placement within a block
    • Hooks immediately preceding a block should use _before
    • Hooks immediately following a block should use _after
    • Hooks placed at the very beginning of a block should use _top
    • Hooks placed at the very end of a block should use _bottom
  • Hooks should be named based upon the generally-accepted semantic name for the section of a theme they cover, e.g., tha_content_* should refer to the section/block of a theme containing the content (or "The Loop"), while tha_sidebar_* would refer to the sidebars generally called by get_sidebar()
Something went wrong with that request. Please try again.