Section / Hook LabelHook NameHooked FunctionsPriority
Start Wrap Container
Before Wrap Containerbioship_before_container
Wrap Container Openbioship_container_openbioship_skeleton_wrapper_open5
Header
Before Header Areabioship_before_headerbioship_skeleton_top_banner
bioship_skeleton_secondary_menu
2
8
Main Headerbioship_headerbioship_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 Widgetsbioship_before_header_widgets
After Header Widgetsbioship_after_header_widgets
After Header Areabioship_after_headerbioship_skeleton_header_banner5
Navigation Bar
Before Main NavBarbioship_before_navbar
Main Navigation Barbioship_navbarbioship_skeleton_main_menu_open
bioship_skeleton_sidebar_button
bioship_skeleton_main_menu_button
bioship_skeleton_subsidebar_button
bioship_skeleton_main_menu
bioship_skeleton_main_menu_close
0
2
4
6
8
10
After Main NavBarbioship_after_navbarbioship_skeleton_echo_clear_div
bioship_skeleton_navbar_banner
8
4
Primary Sidebar
Before Main Sidebarbioship_before_sidebarbioship_skeleton_sidebar_open5
After Sidebarbioship_after_sidebarbioship_skeleton_sidebar_close5
Subsidiary Sidebar
Before SubSidebarbioship_before_subsidebarbioship_skeleton_subsidebar_open5
After SubSidebarbioship_after_subsidebarbioship_skeleton_subsidebar_close5
Start Content Area
Before Content Areabioship_before_contentbioship_skeleton_content_open10
Frontpage Only Contentbioship_front_page_topbioship_skeleton_front_page_content5
Home (Blog) Only Contentbioship_home_page_topbioship_skeleton_home_page_content5
Breadcrumbsbioship_before_loopbioship_skeleton_breadcrumbs5
Before Any Archive Loopbioship_before_archive
Before Category Archive Loopbioship_before_category
Before Taxonomy Archive Loopbioship_before_taxonomy
Before Tag Archive Loopbioship_before_tags
Before Author Archive Loopbioship_before_authorbioship_skeleton_author_bio_top5
Before Date Archive Loopbioship_before_date
Start Entry Loop
Before Entrybioship_before_entry
Attachment Media Handlerbioship_media_handlerbioship_skeleton_media_handler5
Entry Header Hookbioship_entry_headerbioship_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 Imagebioship_thumbnailbioship_skeleton_echo_thumbnail5
Before Thumbnail *bioship_before_thumbnail
After Thumbnail *bioship_after_thumbnail
Post Excerpts
Before Excerptbioship_before_excerpt
Main Excerpt Output Hookbioship_the_excerptbioship_skeleton_echo_the_excerpt5
After Excerptbioship_after_excerpt
Entry Footerbioship_entry_footerbioship_skeleton_entry_footer_open
bioship_skeleton_entry_footer_meta
bioship_skeleton_entry_footer_close
0
6
10
Singular Content
Breadcrumbsbioship_before_singularbioship_skeleton_breadcrumbs5
Author Bio Top Positionbioship_author_bio_top
Before Author Bio *bioship_before_author_bio
After Author Bio *bioship_after_author_bio
Before the Contentbioship_before_the_content
bioship_the_contentbioship_skeleton_echo_the_content5
After the Contentbioship_after_the_content
Author Bio Bottom Positionbioship_author_bio_bottom
After Singular Contentbioship_after_singular
Before Commentsbioship_before_comments
After Commentsbioship_after_comments
End Entry Loop
After Entrybioship_after_entry
Page Navigationbioship_page_navibioship_skeleton_page_navigation5
After Date Archive Loopbioship_after_date
After Author Archive Loopbioship_after_authorbioship_skeleton_author_bio_bottom0
After Tag Archive Loopbioship_after_tags
After Taxonomy Archive Loopbioship_after_taxonomy
After Category Archive Loopbioship_after_category
After Any Archive Loopbioship_after_archive
After Any Loopbioship_after_loop
After Contentbioship_after_contentbioship_skeleton_content_close
bioship_skeleton_echo_clear_div
0
2
Footer
Full Width Footer Bannerbioship_before_footerbioship_skeleton_footer_banner
bioship_skeleton_echo_clear_div
5
10
Main Footerbioship_footerbioship_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 Widgetbioship_before_footer_widgets
After Footer Widgetbioship_after_footer_widgets
After Footerbioship_after_footerbioship_skeleton_bottom_banner5
End Wrap Container
Main Container Closebioship_container_closebioship_skeleton_wrapper_close5
After Wrap Containerbioship_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>';}

Leave a Reply

Your email address will not be published. Required fields are marked *


*


Please copy the string 78j40a to the field below: