***This file is currently being populated with descriptions and examples. Check back frequently for the full rundown of theme hooks.***
Please click on a hook below to review it. Each hook comes with a short description and an occasional example usage. These hooks are the most commonly used throughout the theme. For a full list, please view the hooks.php file of the theme.
**Note: any sample functions will begin with “themename”. Please replace “themename” with the name of your custom child theme. This helps deal with potential conflicts from plugins. Here is a sample function for you to view:
// This will add a link to your homepage in the footer (needs to be styled)
add_action( 'inline_footer', 'themename_footer_home_link' );
function themename_footer_home_link() { ?>
<a href="<?php trailingslashit( home_url() ); ?>">Home</a>
<?php }- inline_init
- inline_pre_theme
- inline_before_html
- inline_before_wireframe
- inline_before_header
- inline_header
- inline_after_header
- inline_before_top_section
- inline_top_section
- inline_after_top_section
- inline_before_main_content
- inline_before_content_sidebar_wrapper
- inline_before_content
- inline_content
- inline_after_content
- inline_after_content_sidebar_wrapper
- inline_before_post
- inline_before_post_title
- inline_post_title
- inline_after_post_title
- inline_before_post_content
- inline_post_content
- inline_after_post_content
- inline_after_post
- inline_pagination
- inline_alternate_loop
- inline_before_main_sidebar
- inline_before_main_sidebar_widgets
- inline_before_sidebar_alt
- inline_before_sidebar_alt_widgets
- inline_sidebar
- inline_sidebar_alt
- inline_after_main_sidebar_widgets
- inline_after_main_sidebar
- inline_after_sidebar_alt_widgets
- inline_after_sidebar_alt
- inline_before_comments
- inline_before_comment_list
- inline_before_pings_list
- inline_comment_special_meta
- inline_comment_form
- inline_after_comment_list
- inline_after_pings_list
- inline_before_comment_respond
- inline_after_comment_respond
- inline_after_comments
- inline_before_footer
- inline_footer
- inline_after_footer
- inline_after_wireframe
- inline_after_html
Hook Descriptions and Usage
inline_init
This hook holds all of inLine’s defined variables and loads up all the required template files to make the theme run.
inline_pre_theme
This hook fires just before any of the inLine constants have been defined. This is a good hook for defining your own set of constants if needed.
inline_before_html
This hook fires just before the opening <body> tag of the HTML document.
inline_before_wireframe
This hook contains the inLine beginning HTML structure, including the opening <body> tag and #wrapper div.
inline_before_header
This hook fires just before the #header div.
inline_header
This hook fires everything within the #header div. It contains the functions inline_do_site_title and inline_do_header_nav by default.
inline_after_header
This hook fires immediately after the #header div.
inline_before_top_section
This hook fires immediately before the #top-section div.
inline_top_section
This hook fires everything within the #top-section div. It contains the functions inline_do_page_titles and inline_do_top_section_widget by default.
inline_after_top_section
This hook fires immediately after the #top-section div.