Hooks Reference

In addition to the default template actions—wp_head, wp_meta and wp_footer—Tarski has its own actions and filters, which constitute an API of sorts. This page is intended as a comprehensive reference for Tarski’s actions and filters.

Actions

th_header

One can use this hook to print additional header content. Tarski uses it internally to add the header image, site title, tagline and navbar.

th_navbar

Executed by a wrapper function added to the th_header hook, this hook is used to add content to the navbar.

th_postend

This hook is used to add content to the end of posts. Tarski uses it internally to add tags to posts and navigation for multi-page posts.

th_posts_nav

Tarski uses this hook to add the next and previous posts navigation on index pages. It could be used to replace this navigation with some other kind.

th_sidebar

The sidebar hook is used by Tarski to add different sidebars, depending on the options chosen by the user. It can be used to override the default sidebar code.

th_fsidebar

Like th_sidebar, but for the footer, this hook is used to add widgets to the secondary footer area.

th_fmain

Similar to th_fsidebar and th_sidebar, this hook is used to add widgets to the primary footer area.

th_footer

Used by default to add the theme credit and site feed link.

Filters

tarski_doctitle

Filter document titles.

tarski_asset_meta

Filters metadata (in the form of meta and link elements) that appears in the document head.

tarski_style_array

Filter the array of stylesheet attributes from which the stylesheet links are generated.

tarski_stylesheets

Filter the raw stylesheet link elements before they're printed to the document.

tarski_sitetitle

Filter site title.

tarski_tagline

Filter site tagline.

tarski_bodyid

Filter the document id value.

multiple_tag_titles

Filter the value returned when generating the title of multiple (union or intersection) tag archive page.

th_post_metadata

Allows for the customisation of post metadata (the content displayed immediately below the post title). By default

th_404_content

Allows users to change their 404 page messages via a plugin.

tarski_comment_datetime

Filters the date and time printed with a comment.

get_comment_author_link

Native WordPress filter on comment author links.

tarski_comment_author_link

Tarski-specific filter on comment author links.

tarski_show_authors

Allows other components to decide whether or not Tarski should show authors.

tarski_doctitle

Filter document titles.