Action Reference - AgriLife/AgriFlex GitHub Wiki

Header Actions

agriflex_head()

Located in the <head> section of header.php before the wp_head() action.

Hooking into this action allows you to add CSS or Javascript before wp_head() fires.

agriflex_before_header()

Located right after the opening <body> tag.

This action is currently used to insert the agency banner at the top of the page.

agriflex_header()

Located after the opening <div id="wrapper">.

This action is used to insert the site title.

agriflex_after_header()

Located right after agriflex_header() and before the opening <div id="content-wrap">.

This action is used to insert the top navigation menu.

Content Actions

agriflex_before_loop()

Located right after the opening <div id="content">.

This hook is not used by default but was made available to help plugin developers insert content.

agriflex_after_loop()

Located before the closing </div><!-- #content -->.

This hook is not used by default but was made available to help plugin developers insert content.

Footer Actions

agriflex_before_footer()

Located after the opening <footer> tag.

This hook is not used by default but was made available to help plugin developers insert content.

agriflex_footer()

Located after the opening <div class="wrap">.

This action is used to build the default 5-pane footer.

agriflex_after_footer()

Located after the closing </div><!-- .wrap -->.

This hook is not used by default but was made available to help plugin developers insert content.

footer_col_1()

Located in agriflex_show_footer().

This action builds the first footer pane.

footer_col_2()

Located in agriflex_show_footer().

This action builds the second footer pane.

footer_col_3()

Located in agriflex_show_footer().

This action builds the third footer pane.

footer_col_4()

Located in agriflex_show_footer().

This action builds the fourth footer pane.

footer_col_5()

Located in agriflex_show_footer().

This action builds the fifth footer pane.

⚠️ **GitHub.com Fallback** ⚠️