Section / Hook Label | Hook Name | Hooked Functions | Priority |
Start Wrap Container | |||
Before Wrap Container | bioship_before_container | ||
Wrap Container Open | bioship_container_open | bioship_skeleton_wrapper_open | 5 |
Header | |||
Before Header Area | bioship_before_header | bioship_skeleton_top_banner bioship_skeleton_secondary_menu | 2 8 |
Main Header | bioship_header | bioship_skeleton_header_open bioship_skeleton_header_nav bioship_skeleton_echo_clear_div bioship_skeleton_header_logo bioship_skeleton_header_widgets bioship_skeleton_header_extras bioship_skeleton_header_close | 0 2 3 4 6 8 10 |
Before Header Widgets | bioship_before_header_widgets | ||
Header Widget Area Template | bioship_header_sidebar | ||
After Header Widgets | bioship_after_header_widgets | ||
After Header Area | bioship_after_header | bioship_skeleton_header_banner | 5 |
Navigation Bar | |||
Before Main NavBar | bioship_before_navbar | ||
Main Navigation Bar | bioship_navbar | bioship_skeleton_main_menu_open bioship_skeleton_main_menu bioship_skeleton_sidebar_button bioship_skeleton_main_menu_button bioship_skeleton_subsidebar_button bioship_skeleton_main_menu_close | 0 2 4 6 8 10 |
After Main NavBar | bioship_after_navbar | bioship_skeleton_echo_clear_div bioship_skeleton_navbar_banner | 8 4 |
Primary Sidebar | |||
Before Primary Sidebar | bioship_before_sidebar | bioship_skeleton_sidebar_open | 5 |
Sidebar Widget Template | bioship_sidebar | ||
After Primary Sidebar | bioship_after_sidebar | bioship_skeleton_sidebar_close | 5 |
Subsidiary Sidebar | |||
Before Subsidiary Sidebar | bioship_before_subsidebar | bioship_skeleton_subsidebar_open | 5 |
SubSidebar Widget Template | bioship_subsidebar | ||
After Subsidiary Sidebar | bioship_after_subsidebar | bioship_skeleton_subsidebar_close | 5 |
Start Content Area | |||
Before Content Area | bioship_before_content | bioship_skeleton_content_open | 10 |
Frontpage Only Top | bioship_front_page_top | bioship_skeleton_front_page_content | 5 |
Home (Blog) Only Top | bioship_home_page_top | bioship_skeleton_home_page_content | 5 |
Before Any Loop | bioship_before_loop | bioship_skeleton_breadcrumbs | 5 |
Before Any Archive Loop | bioship_before_archive | ||
Before Category Archive Loop | bioship_before_category | ||
Before Taxonomy Archive Loop | bioship_before_taxonomy | ||
Before Tag Archive Loop | bioship_before_tags | ||
Before Author Archive Loop | bioship_before_author | bioship_skeleton_author_bio_top | 5 |
Before Date Archive Loop | bioship_before_date | ||
Start Entry Loop | |||
Before Entry | bioship_before_entry | ||
Media Handler Action | bioship_media_handler | bioship_skeleton_media_handler | 5 |
Entry Header Hook | bioship_entry_header | bioship_skeleton_entry_header_open bioship_skeleton_entry_header_title bioship_skeleton_entry_header_subtitle bioship_skeleton_entry_header_meta bioship_skeleton_entry_header_close | 0 2 4 6 10 |
Thumbnail or Featured Image | bioship_thumbnail | bioship_skeleton_echo_thumbnail | 5 |
Before Thumbnail * | bioship_before_thumbnail | ||
Thumbnail | bioship_echo_thumbnail | ||
After Thumbnail * | bioship_after_thumbnail | ||
Post Excerpts | |||
Before Excerpt | bioship_before_excerpt | ||
Main Excerpt | bioship_the_excerpt | bioship_skeleton_echo_the_excerpt | 5 |
Excerpt Content | bioship_excerpt | ||
After Excerpt | bioship_after_excerpt | ||
Entry Footer | bioship_entry_footer | bioship_skeleton_entry_footer_open bioship_skeleton_entry_footer_meta bioship_skeleton_entry_footer_close | 0 6 10 |
Singular Content | |||
Breadcrumbs | bioship_before_singular | bioship_skeleton_breadcrumbs | 5 |
Author Bio Top Position | bioship_author_bio_top | ||
Before Author Bio * | bioship_before_author_bio | ||
Author Bio Content | bioship_author_bio | ||
After Author Bio * | bioship_after_author_bio | ||
Before the Content | bioship_before_the_content | ||
Main Content | bioship_the_content | bioship_skeleton_echo_the_content | 5 |
Main Content | bioship_content | ||
After the Content | bioship_after_the_content | ||
Author Bio Bottom Position | bioship_author_bio_bottom | ||
After Singular Content | bioship_after_singular | ||
Before Comments | bioship_before_comments | ||
Comment Content | bioship_comments | ||
After Comments | bioship_after_comments | ||
End Entry Loop | |||
After Entry | bioship_after_entry | ||
Page Navigation | bioship_page_navi | bioship_skeleton_page_navigation | 5 |
After Date Archive Loop | bioship_after_date | ||
After Author Archive Loop | bioship_after_author | bioship_skeleton_author_bio_bottom | 5 |
After Tag Archive Loop | bioship_after_tags | ||
After Taxonomy Archive Loop | bioship_after_taxonomy | ||
After Category Archive Loop | bioship_after_category | ||
After Any Archive Loop | bioship_after_archive | ||
After Any Loop | bioship_after_loop | ||
Frontpage Only Top | bioship_front_page_bottom | bioship_skeleton_front_page_footnote | 5 |
Home (Blog) Only Top | bioship_home_page_bottom | skeleton_home_page_footnote | 5 |
After Content | bioship_after_content | bioship_skeleton_content_close bioship_skeleton_echo_clear_div | 0 2 |
Footer | |||
Before Footer | bioship_before_footer | bioship_skeleton_footer_banner bioship_skeleton_echo_clear_div | 5 10 |
Main Footer | bioship_footer | bioship_skeleton_footer_open bioship_skeleton_footer_extras bioship_skeleton_footer_widgets bioship_skeleton_footer_nav bioship_skeleton_footer_credits bioship_skeleton_footer_close | 0 2 4 6 8 10 |
Before Footer Widget | bioship_before_footer_widgets | ||
Footer Widget Area Template | bioship_footer_widgets | ||
After Footer Widget | bioship_after_footer_widgets | ||
After Footer | bioship_after_footer | bioship_skeleton_bottom_banner | 5 |
End Wrap Container | |||
Main Container Close | bioship_container_close | bioship_skeleton_wrapper_close | 5 |
After Wrap Container | bioship_after_container |
Hybrid Hook
All hooks are automatically made available to the Hybrid Hook plugin (modified for BioShip.) When activated (via Theme Options -> Skeleton -> Hybrid) you can access Appearance -> Hybrid Hook. This allows you to easily add content (Text, HTML, or Shortcode) to any of the Layout Hook sections. (You can also specify a priority if you need to insert between existing hooked functions.)
Manually Adding Functions
You can of course simply add your own functions to any of the available hooks with a few lines of code, in the form:add_action('{hook_name}', '{function_name}', {priority});
For example, to add a simple welcome message:
add_action('bioship_after_header', 'custom_after_header_function', 5); function custom_after_header_function() {echo 'Welcome!';}
Or for an existing shortcode function called welcome_shortcode:
add_action('bioship_after_header', 'custom_welcome_shortcode', 5); function custom_welcome_shortcode() {echo do_shortcode('[welcome_shortcode']);}
Reordering Layout Functions
If something is hooked in the wrong position for your desired layout, you can change it's position with a filter.Priority filters have the same name as the function appended with _position:
add_filter('bioship_header_widgets_position', 'custom_header_widgets_position'); function custom_header_widgets_position() {return 2;}
OR more directly with an anonymous function:
add_filter('bioship_header_widgets_position', function(){return 2;} );
Removing Layout Functions
If you change the hooked function priority via filter to -1 and it will not be added. eg.add_filter('bioship_header_widgets_position', function(){return -1;} );
You can also remove any of the hooked functions you can do so using bioship_remove_action
This is a wrapper for WordPress remove_action with the filtered priority calculated automatically.
bioship_remove_action('bioship_header', 'bioship_header_widgets');
Note: while you can do the same manually without using bioship_remove_action you would need to
delay the removal until after the action has been added or it will not actually be removed.
Practically speaking, this means wrapping in a further check in your functions.php eg.
add_action('init', 'custom_layout_femovals'); function custom_layout_removals() { remove_action('bioship_header', 'bioship_header_widgets', 6); }
Replacing Layout Functions
If something is hooked in the wrong section for your desired layout, you can remove it and reinsert it.Note again you would need to delay the removal or use bioship_remove_action which auto-delays for you.
bioship_remove_action('bioship_header', 'bioship_header_widgets'); add_action('bioship_navbar', 'bioship_header_widgets', 2);
Header / Footer Extra HTML
You can also add extra HTML to the Header / Footer HTML sections using filters.These are throwbacks from a previous implementation but are still available for use.
Filters: bioship_header_html_extras and bioship_footer_html_extras, eg:
add_filter('bioship_header_html_extra', 'custom_header_html_extras');
function custom_header_html_extras() {return '<div>Div Content</div>';}
← Previous: Responsive Grid System | Back to Documentation Index |