Below is a list of hooks that have been built into the Genesis Theme Framework:
Internal Action Hooks
genesis_init
This hook fires at the end of the /lib/init.php file. Think of any function hooked to it as being executed at the bottom top of either the parent or child functions.php file.
Document Head Action Hooks
genesis_doctitle
This hook executes between <title></title> tags and outputs the doctitle. You can find all doctitle related code in /lib/functions/seo_functions.php.
genesis_meta
This hook executes in the <head></head> section of the document source. By default, things like META descriptions and keywords are output using this hook, along with the default stylesheet and the reference to the favicon.
Structural Action Hooks
genesis_before
This hook executes immediately after the opening <body> tag in the document source.
genesis_after
This hook executes immediately before the closing </body> tag in the document source.
genesis_before_header
This hook executes immediately before the header (outside the #header div).
genesis_after_header
This hook executes immediately after the header (outside the #header div).
genesis_before_content_sidebar_wrap
This hook executes immediately before the div block that wraps the content and the primary sidebar (outside the #content-sidebar-wrap div).
genesis_after_content_sidebar_wrap
This hook executes immediately after the div block that wraps the content and the primary sidebar (outside the #content-sidebar-wrap div).
genesis_before_content
This hook executes immediately before the content column (outside the #content div).
genesis_after_content
This hook executes immediately before the content column (outside the #content div).
genesis_before_sidebar
This hook executes immediately before the primary sidebar column (outside the #sidebar div).
genesis_after_sidebar
This hook executes immediately after the primary sidebar column (outside the #sidebar div).
genesis_before_sidebar_widget_area
This hook executes immediately before the primary sidebar widget area (inside the #sidebar div).
genesis_after_sidebar_widget_area
This hook executes immediately after the primary sidebar widget area (inside the #sidebar div).
genesis_before_sidebar_alt
This hook executes immediately before the alternate sidebar column (outside the #sidebar-alt div).
genesis_after_sidebar_alt
This hook executes immediately after the alternate sidebar column (outside the #sidebar-alt div).
genesis_before_sidebar_alt_widget_area
This hook executes immediately before the alternate sidebar widget area (inside the #sidebar-alt div).
genesis_after_sidebar_alt_widget_area
This hook executes immediately after the alternate sidebar widget area (inside the #sidebar-alt div).
genesis_before_footer
This hook executes immediately before the footer (outside the #footer div).
genesis_after_footer
This hook executes immediately after the footer (outside the #footer div).
genesis_footer
This hook, by default, outputs the content of the footer (inside the #footer div).
Loop Action Hooks
genesis_before_loop
This hook executes immediately before all loop blocks. Therefore, this hook falls outside the loop, and cannot execute functions that require loop template tags or variables.
genesis_after_loop
This hook executes immediately after all loop blocks. Therefore, this hook falls outside the loop, and cannot execute functions that require loop template tags or variables.
genesis_after_endwhile
This hook executes after the endwhile; statement in all loop blocks.
genesis_loop_else
This hook executes after the else : statement in all loop blocks.
genesis_before_post
This hook executes before each post in all loop blocks (outside the post_class() div).
genesis_after_post
This hook executes after each post in all loop blocks (outside the post_class() div).
genesis_before_post_title
This hook executes immediately before each post title for each post within the loop.
genesis_after_post_title
This hook executes immediately after each post title for each post within the loop.
genesis_before_post_content
This hook executes immediately before the_content(), the_excerpt(), or the_content_limit() for each post within the loop.
genesis_after_post_content
This hook executes immediately after the_content(), the_excerpt(), or the_content_limit() for each post within the loop.
Comment Action Hooks
genesis_before_comments
This hook executes immediately before the comments block (outside the #comments div).
genesis_after_comments
This hook executes immediately after the comments block (outside the #comments div).
genesis_list_comments()
This hook executes inside the comments block, inside the .comment-list OL. By default, it outputs a list of comments associated with a post via the genesis_default_list_comments() function.
genesis_before_pings
This hook executes immediately before the pings block (outside the #pings div).
genesis_after_pings
This hook executes immediately after the pings block (outside the #pings div).
genesis_list_pings()
This hook executes inside the pings block, inside the .ping-list OL. By default, it outputs a list of pings associated with a post via the genesis_default_list_pings() function.
genesis_before_respond
This hook executes immediately before the respond block (outside the #respond div).
genesis_after_respond
This hook executes immediately after the respond block (outside the #respond div).
genesis_before_comments_form
This hook executes immediately before the comment form (outside the form wrapper).
genesis_after_comments_form
This hook executes immediately after the comment form (inside the #respond div, but outside the form wrapper).
genesis_comments_form
This hook inside the #respond block, and outputs the default comment form via the genesis_default_comments_form() function.
