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_afterunysonplus-theme/footer.php
unysonplus_after_archive_titleFires after the archive page title (page-header) renders.
unysonplus_after_entryunysonplus-theme/single.php
unysonplus_after_entry_contentFires after .entry-content closes.
unysonplus_after_entry_titleFires after the entry <h1>/<h2> title prints.
unysonplus_after_footerunysonplus-theme/footer.php
unysonplus_after_headerunysonplus-theme/header.php
unysonplus_after_loopFires after the post loop ends (before pagination).
unysonplus_after_mainFires just after </main> closes, before the sidebar renders. Use to inject post-navigation, related posts, social share, etc.
unysonplus_after_sidebarFires just after the left sidebar </aside> closes.
unysonplus_before_archive_titleFires before the archive page title (page-header) renders.
unysonplus_before_entryunysonplus-theme/single.php
unysonplus_before_entry_contentFires before .entry-content opens.
unysonplus_before_entry_titleFires before the entry <h1>/<h2> title prints.
unysonplus_before_footerunysonplus-theme/footer.php
unysonplus_before_headerunysonplus-theme/header.php
unysonplus_before_loopFires before the post loop starts.
unysonplus_before_mainFires just before <main> opens. Use to inject banners, breadcrumbs, or sticky bars inside the content container.
unysonplus_before_sidebarFires just before the left sidebar <aside> renders.
unysonplus_entry_bottomFires at the bottom of <article>.
unysonplus_entry_headerunysonplus-theme/template-parts/content-page.php
unysonplus_entry_topFires at the top of <article>.
unysonplus_header_bottomunysonplus-theme/template-parts/header-builder.php
unysonplus_header_topunysonplus-theme/template-parts/header-builder.php
unysonplus_page_hero_innerunysonplus-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