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

Used to add the header image, title and tagline. Put in another element or remove existing ones.

th_navbar

Appears in the header file, used to add Tarski’s navbar and feed link.

th_postend

Appears after every post. Use to add adverts, ‘Share This’ links and the like.

th_sidebar

Manipulate sidebar content to your heart’s content. Tarski’s sidebar has a lot of options out of the box, so make sure you take a look at the sidebar file, sidebar.php, before messing with this one.

th_fsidebar

Appears in the footer sidebar. Used by default to add the search form.

th_fmain

Appears in the main footer column. Used by default to add the footer blurb and recent entries.

th_footer

Appears below the main footer content. Used by default to add the feed link and theme credits.

Filters

tarski_doctitle

Applied to the document title element’s content.

tarski_style_array

Applied to the default array of Tarski stylesheets, expected return is an array of associated arrays. Allows greater control than tarski_stylesheets, but is more fiddly to use.

tarski_stylesheets

Applied to the array of links generated from the array returned by tarski_style_array. This filter makes it easy to add or remove stylesheets.

tarski_javascript

Like tarski_stylesheets, but for JavaScript.

tarski_feeds

Applied to the feed links Tarski generates in the document head.

tarski_sitetitle

Applied to the site title which appears in the header.

tarski_tagline

Applied to the tagline which appears in the header.

tarski_navbar

Applied to the navbar list. Used within the theme to add the ‘Site Admin’ link and anything included through the constants file.

tarski_bodyclass

By default this applies various HTML classes to enable various styling options.

tarski_bodyid

By default this applies an HTML id to the body element, allowing one to style individual pages differently.

tarski_sidebar_links

Applied to options array which Tarski uses to generate its sidebar links list.

tarski_comment_author_link

Applied to comment author links.

th_404_content

Applied to the default text on 404 error pages.

tarski_excerpt

Applied to Tarski-generated excerpts.

tarski_sidebar_custom

Applied to the custom sidebar content output.

tarski_footer_blurb

Applied to the footer blurb. Used by default to wrap the footer blurb in a div element and add an ‘edit’ link.

author_feed_link

Applied to the author feed link.

implode_proper

Applied to any content passed through the implode_proper function, which is used by Tarski to generate tag intersection and union titles.

multiple_tag_titles

Applied to multiple tag titles, which are used for tag archives in the title and h1 elements as well as in a page description.