When it comes to being a Thesis developer, there is one thing I have been unable to live without: Thesis Hooks. Good ol’ Chris Pearson has hooked us devs up with…well, a ton of hooks. The Thesis hooks list below tells you all 54 hooks in the order they appear in hooks.php. Before the list of hooks is the filters list with the corresponding file name.
Thesis Filters List
Comments.PHP
thesis_comments_linkthesis_comments_introthesis_avatarthesis_comments_navigation
Compatibility.PHP
thesis_custom_field_keys
Content.PHP
thesis_content_classesthesis_image_caption_shortcode
Document.PHP
thesis_body_classes
Widgets.PHP
thesis_search_form_value
Thesis Hooks List
thesis_hook_before_html- right after body.customthesis_hook_after_html- after #container and before /bodythesis_hook_before_header- between .menu and #headerthesis_hook_after_header- between #header and #content_box, before thesis_hook_before_content_boxthesis_hook_header- within #header, after #tagline, after thesis_hook_after_titlethesis_hook_before_title- within #header before #logothesis_hook_after_title- within #header, after #tagline, before thesis_hook_headerthesis_hook_first_nav_item- right after .menu, before the first lithesis_hook_last_nav_item- within .menu, right after last lithesis_hook_before_content_box- between #header and #content_box, after thesis_hook_after_headerthesis_hook_after_content_box- between #content_box and #footerthesis_hook_content_box_top-thesis_hook_content_box_bottom-thesis_hook_before_content- right after #contentthesis_hook_after_content- at the end of #content, after .prev_nextthesis_hook_before_content_area- before #content_area, only in full width frameworkthesis_hook_after_content_area- after #content_area, only in full width frameworkthesis_hook_feature_box- within #feature_box, either the first item within #content, between #header and #content_box, or between .menu and #headerthesis_hook_before_post_box- after #content, before first postthesis_hook_after_post_box- within each .post, at the very endthesis_hook_before_teasers_box- within and at the beginning of .teasers_boxthesis_hook_after_teasers_box- after each .teasers_box divthesis_hook_before_post- within and at the very beginning of .format_textthesis_hook_after_post- at the end of .format_text, after .to_commentsthesis_hook_before_teaser_box- before each .teaserthesis_hook_after_teaser_box- after each .teaser [this one is a little tricky]thesis_hook_before_teaser- first thing within .format_teaserthesis_hook_after_teaser- last thing within .format_teaserthesis_hook_before_headline- first thing within headline_areathesis_hook_after_headline- right after .entry-titlethesis_hook_before_teaser_headline- before each .teaser's .entry-titlethesis_hook_after_teaser_headline- right below each .teaser's .entry-titlethesis_hook_byline_item- right after .headline_metathesis_hook_before_comment_meta- first thing within each dt.commentthesis_hook_after_comment_meta- last thing within each dt.commentthesis_hook_after_comment- last thing within each dd.comment .comment-body-nthesis_hook_after_comments- right after dl#comment_listthesis_hook_comment_form_top-thesis_hook_comment_field- right after #comment_form pthesis_hook_after_comment_box-thesis_hook_comment_form_bottom-thesis_hook_comment_form- right after .comment_box, before the submit buttonthesis_hook_archives_template- Used to customize the appearance of the Archives Template (archives.php). This hook calls the thesis_archives_template function by default. //from DIYthemesthesis_hook_custom_template- your very own custom page custom template replacing #content_boxthesis_hook_faux_admin- within div#content_box (and also div#column_wrap if a sidebars-first three-column layout is in use) //from DIYthemesthesis_hook_archive_info- Above the first post only on archive views. //from DIYthemesthesis_hook_404_title- within a 404 page's .headline_meta h1thesis_hook_404_content- last thing within a 404 page's .format_textthesis_hook_before_sidebars- first thing within #sidebarsthesis_hook_after_sidebars- last thing within #sidebarsthesis_hook_multimedia_box- contents of #multimedia_box #custom_boxthesis_hook_after_multimedia_box- after #multimedia_box, before #sidebar_1 and/or #sidebar_2thesis_hook_before_sidebar_1- first thing within #sidebar_1 .sidebar_list, before the first lithesis_hook_after_sidebar_1- last thing within #sidebar_1 .sidebar_list, after the last lithesis_hook_before_sidebar_2- first thing within #sidebar_2 .sidebar_list, before the first lithesis_hook_after_sidebar_2- last thing within #sidebar_2 .sidebar_list, after the last lithesis_hook_before_footer- right before #footer and after #content_boxthesis_hook_after_footer- after #footer, but still within #pagethesis_hook_footer- between attribution link and WP Admin link in #footer
Well, there you have it folks. A list of every single Thesis Hook available as of Thesis 1.6.
If you are interested in developing sites on Thesis, be sure to upgrade to the developer's option. If you don't have Thesis, you had better pick it up now!
{ 1 trackback }
{ 4 comments… read them below or add one }
How on earth did I miss this? Bookmarked!
@Willie
I was desperate for a simple list that tells where each hook is. I don’t like the ‘visual list’ so I did a plain text one. I use it almost every day.
1) Matt, you’re da bomb.
2) Is there a hook to include something WITHIN the opening tag? I’d like to put my on <BODY onLoad… javascript in there….
Thanks for sharing this resource! It’s a lot simpler than digging into the core files every time you want to find the full list of hooks.