Skip to content
Epiktetos Theme1.0.0
1.0.02 min read

Hooks and Filters

WordPress hooks, theme filters, and extension points found in Epiktetos.

Epiktetos relies on standard WordPress actions and filters plus a small set of theme-specific filters.

Theme-specific filters

FilterPurpose
epiktetos_hero_categoriesChange the category slugs considered for homepage hero slides.
epiktetos_hero_post_idOverride the selected hero post.
epiktetos_hero_show_categoryControl whether the hero category label is shown.
epiktetos_hero_show_excerptControl whether the hero excerpt is shown.
epiktetos_hero_cta_labelChange the hero call-to-action label.
epiktetos_latest_countChange the number of latest posts shown.

Common WordPress actions used

ActionTheme usage
after_setup_themeTheme supports, menus, editor styles, translations.
after_switch_themeDefault menu seeding and activation wizard setup.
wp_enqueue_scriptsFront-end CSS and JavaScript loading.
wp_body_openSkip link output.
wp_headFont preload, header no-FOUC CSS, dynamic CSS, favicons, SEO metadata.
initShortcodes, rewrite rules, canonical handling, and class setup.
rest_api_initSearch REST route registration.
admin_menuAppearance > Epiktetos admin pages.
admin_initSettings registration and admin actions.
save_post_postSEO intelligence and reader/cache updates.

Common WordPress filters used

FilterTheme usage
body_classHeader/theme-mode body classes.
pre_get_document_titleSEO title output.
wp_robotsSEO robots control.
comments_openComment setting behavior.
option_thread_commentsThreaded comment setting behavior.
option_thread_comments_depthComment depth setting behavior.
query_varsSaved reader route query variable.
template_includeSaved reader PHP template selection.
upload_mimesSVG upload support for branding.
pre_handle_404Archive, tag, and author 404 behavior in specific cases.

Example

Code
add_filter( 'epiktetos_latest_count', function () {
    return 8;
} );

Use filters from a child theme or small site plugin so updates to the parent theme remain manageable.

Related articles