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
| Filter | Purpose |
|---|---|
epiktetos_hero_categories | Change the category slugs considered for homepage hero slides. |
epiktetos_hero_post_id | Override the selected hero post. |
epiktetos_hero_show_category | Control whether the hero category label is shown. |
epiktetos_hero_show_excerpt | Control whether the hero excerpt is shown. |
epiktetos_hero_cta_label | Change the hero call-to-action label. |
epiktetos_latest_count | Change the number of latest posts shown. |
Common WordPress actions used
| Action | Theme usage |
|---|---|
after_setup_theme | Theme supports, menus, editor styles, translations. |
after_switch_theme | Default menu seeding and activation wizard setup. |
wp_enqueue_scripts | Front-end CSS and JavaScript loading. |
wp_body_open | Skip link output. |
wp_head | Font preload, header no-FOUC CSS, dynamic CSS, favicons, SEO metadata. |
init | Shortcodes, rewrite rules, canonical handling, and class setup. |
rest_api_init | Search REST route registration. |
admin_menu | Appearance > Epiktetos admin pages. |
admin_init | Settings registration and admin actions. |
save_post_post | SEO intelligence and reader/cache updates. |
Common WordPress filters used
| Filter | Theme usage |
|---|---|
body_class | Header/theme-mode body classes. |
pre_get_document_title | SEO title output. |
wp_robots | SEO robots control. |
comments_open | Comment setting behavior. |
option_thread_comments | Threaded comment setting behavior. |
option_thread_comments_depth | Comment depth setting behavior. |
query_vars | Saved reader route query variable. |
template_include | Saved reader PHP template selection. |
upload_mimes | SVG upload support for branding. |
pre_handle_404 | Archive, 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.