New versus old hooks in Genesis 2.0

An overview of the new and old hooks in the Genesis Framework 2.0 for WordPress.
Just a quick reminder so I dont have to dig into the code all the time.

See function genesis_reset_loops() in genesis/lib/structure/post.php

//* HTML5 Hooks
add_action( 'genesis_entry_header', 'genesis_do_post_format_image', 5 );
add_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
add_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
add_action( 'genesis_entry_header', 'genesis_do_post_title' );
add_action( 'genesis_entry_content', 'genesis_do_post_image' );
add_action( 'genesis_entry_content', 'genesis_do_post_content' );
add_action( 'genesis_entry_content', 'genesis_do_post_permalink' );
add_action( 'genesis_entry_content', 'genesis_do_post_content_nav' );
add_action( 'genesis_entry_header', 'genesis_post_info' );
add_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );
add_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );
add_action( 'genesis_entry_footer', 'genesis_post_meta' );
add_action( 'genesis_after_entry', 'genesis_do_author_box_single' );


//* Pre-HTML5 hooks
add_action( 'genesis_before_post_title', 'genesis_do_post_format_image' );
add_action( 'genesis_post_title', 'genesis_do_post_title' );
add_action( 'genesis_post_content', 'genesis_do_post_image' );
add_action( 'genesis_post_content', 'genesis_do_post_content' );
add_action( 'genesis_post_content', 'genesis_do_post_permalink' );
add_action( 'genesis_post_content', 'genesis_do_post_content_nav' );
add_action( 'genesis_before_post_content', 'genesis_post_info' );
add_action( 'genesis_after_post_content', 'genesis_post_meta' );
add_action( 'genesis_after_post', 'genesis_do_author_box_single' );


//* Other
add_action( 'genesis_loop_else', 'genesis_do_noposts' );
add_action( 'genesis_after_endwhile', 'genesis_posts_nav' );

More about the new hooks:

Brian Gardner: 11 Essential Resources About the Upcoming Genesis 2.0 That We Think You’ll Enjoy
Brian Gardner: Genesis HTML5 Loop Hooks
Nathan Rice: New Loop Hooks in Genesis 2.0
Carrie Dils: Genesis 2.0 Hook Changes
Brad Dalton: New Genesis 2.0 Loop Hooks & How To Use Them

Advertisements

Author: Rian Rietveld

WordPress Engineer focussing on accessibility

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s