Skip to main content

Theme hooks

Template and design-layer hooks fired by the Unyson+ Theme (unysonplus-theme). These are the hooks a child theme uses to inject markup into the header, footer, blog loop, and entry templates, and to filter the settings → CSS pipeline.

The blog loop exposes a full set of action points — drop content around posts without overriding templates:

add_action( 'unysonplus_entry_header', function () {
// Runs in the post header area of the blog loop / single post.
} );

Common loop hooks include unysonplus_before_loop / unysonplus_after_loop, unysonplus_entry_top, unysonplus_entry_header, unysonplus_after_entry_content, and unysonplus_after_entry. See The Theme for how the chrome and blog templates are assembled.

Actions (25)​

HookPasses to your callbackWhat it does
unysonplus_after—unysonplus-theme/footer.php
unysonplus_after_archive_title—Fires after the archive page title (page-header) renders.
unysonplus_after_entry—unysonplus-theme/single.php
unysonplus_after_entry_content—Fires after .entry-content closes.
unysonplus_after_entry_title—Fires after the entry <h1>/<h2> title prints.
unysonplus_after_footer—unysonplus-theme/footer.php
unysonplus_after_header—unysonplus-theme/header.php
unysonplus_after_loop—Fires after the post loop ends (before pagination).
unysonplus_after_main—Fires just after </main> closes, before the sidebar renders. Use to inject post-navigation, related posts, social share, etc.
unysonplus_after_sidebar—Fires just after the left sidebar </aside> closes.
unysonplus_before_archive_title—Fires before the archive page title (page-header) renders.
unysonplus_before_entry—unysonplus-theme/single.php
unysonplus_before_entry_content—Fires before .entry-content opens.
unysonplus_before_entry_title—Fires before the entry <h1>/<h2> title prints.
unysonplus_before_footer—unysonplus-theme/footer.php
unysonplus_before_header—unysonplus-theme/header.php
unysonplus_before_loop—Fires before the post loop starts.
unysonplus_before_main—Fires just before <main> opens. Use to inject banners, breadcrumbs, or sticky bars inside the content container.
unysonplus_before_sidebar—Fires just before the left sidebar <aside> renders.
unysonplus_entry_bottom—Fires at the bottom of <article>.
unysonplus_entry_header—unysonplus-theme/template-parts/content-page.php
unysonplus_entry_top—Fires at the top of <article>.
unysonplus_header_bottom—unysonplus-theme/template-parts/header-builder.php
unysonplus_header_top—unysonplus-theme/template-parts/header-builder.php
unysonplus_page_hero_inner—unysonplus-theme/inc/includes/layout.php

Filters (7)​

HookPasses to your callbackWhat it does
fw_theme_get_featured_postsarray()@param array|bool $posts Array of featured posts, otherwise false.
unysonplus_settings_io_exclude_keyssee sourceunysonplus-theme/inc/includes/settings-export-import.php
unysonplus_woocommerce_loop_columns3unysonplus-theme/inc/includes/woocommerce.php
unysonplus_woocommerce_products_per_page12unysonplus-theme/inc/includes/woocommerce.php
unysonplus_woocommerce_related_count3unysonplus-theme/inc/includes/woocommerce.php
unysonplus_woocommerce_sidebar'none'Sidebar position for WooCommerce pages. @param string $position 'none' | 'left' | 'right'. Default 'none'.
unysonplus_woocommerce_thumbnail_columns4unysonplus-theme/inc/includes/woocommerce.php