Action Hooks

Action hooks are used extensively throughout the theme. All code between the body tags is added either by hooks and filters or by calling template parts.

Here are the action hooks listed by file.

Template Files

header.php

    do_action( 'thmfdn_body_top' );
    do_action( 'thmfdn_header_before' );
    do_action( 'thmfdn_header' );
    do_action( 'thmfdn_header_after' );

index.php

    do_action( 'thmfdn_template_setup' );
    do_action( 'thmfdn_content_before' );
    do_action( 'thmfdn_content_top' );
    do_action( 'thmfdn_entry_before' );
    do_action( 'thmfdn_entry_after' );
    do_action( 'thmfdn_content_bottom' );
    do_action( 'thmfdn_content_after' );

sidebar.php

    do_action( 'thmfdn_sidebar_before' );
    do_action( 'thmfdn_sidebar_after' );

footer.php

    do_action( 'thmfdn_footer_before' );
    do_action( 'thmfdn_footer' );
    do_action( 'thmfdn_footer_after' );
    do_action( 'thmfdn_body_bottom' );

Template Parts

All template parts contain the same action hooks (with the exception of the 404 template part).

Unlike full template files, template parts are not exclusively action/filter hook driven. While it would be possible handle template parts that way, it gets ugly inside the loop. By default, no functions are attached to the hooks inside the template parts. These hooks exist only to allow you to extend the template parts if needed.

    do_action( 'thmfdn_template_part_setup' );
    do_action( 'thmfdn_entry_top' );
    do_action( 'thmfdn_entry_title_before' );
    do_action( 'thmfdn_entry_title_after' );
    do_action( 'thmfdn_entry_content_before' );
    do_action( 'thmfdn_entry_content_after' );
    do_action( 'thmfdn_entry_bottom' );