WooThemes

Canvas: Hook/Filter Reference

Subscribe

HOOK REFERENCE:

The Canvas home page annotated with it's hooks and filters.

Header Hooks:

woo_top – Executed below the opening <body> tag.

woo_header_before – Executed before the opening #header DIV tag.

woo_header_inside – Executed at the top, inside the #header DIV tag.

woo_header_after – Executed after the closing #header DIV tag.

Main Content Area Hooks:

woo_content_before – Executed before the opening #content DIV tag.

woo_main_before – Executed before the opening #main DIV tag.

woo_loop_before – Executed before the WordPress Loop.

loop_start – Executed at the start of the WordPress Loop.

loop_end – Executed at the end of the WordPress Loop.

woo_loop_after – Executed after the WordPress Loop.

woo_main_after – Executed after the closing #main DIV tag.

woo_content_after – Executed after the closing #content DIV tag.

Post Hooks:

woo_post_before – Executed before each post.

woo_post_inside_before – Executed at the top, inside each post’s DIV tag.

woo_post_inside_after – Executed at the bottom, inside each post’s DIV tag.

woo_post_after – Executed after each post.

Footer Hooks:

woo_footer_top – Executed at the top of the footer.php file.

woo_footer_before – Executed before the opening #footer DIV tag.

woo_footer_inside – Executed at the top, inside the #footer DIV tag.

woo_footer_left_before – Executed before the content of the left column in the #footer DIV tag.

woo_footer_left_after – Executed after the content of the left column in the #footer DIV tag.

woo_footer_right_before – Executed before the content of the right column in the #footer DIV tag.

woo_footer_right_after – Executed after the content of the right column in the #footer DIV tag.

woo_footer_after – Executed after the closing #footer DIV tag.

Common WordPress Hooks:

wp_head – Executed before the closing </head> tag.

wp_footer – Executed before the closing </body> tag.

FILTER REFERENCE:


- woo_archive_title

The title on archive page templates (archive.php, category.php, tag.php, taxonomy.php)

Parameters: 3 ( $title, $before, $after )

- woothemes_pagelinks_args

The arguments used when generating the pagination links on multi-page posts/pages.

For a list of available arguments, see this page on the WordPress Codex: http://codex.wordpress.org/Function_Reference/wp_link_pages

Parameters: 1 ( $args array )
Return: 1 ( $args array )

- the_title

The title of any page/post.

Parameters: 3 ( $title, $before, $after )
Return: 1 ( $title string )

- woo_post_more

The meta data after the title of each blog post.

Parameters: 1 ( $text string )
Return: 1 ( $text string )

- woo_footer_left

The HTML in the left column of the footer.

Parameters: 1 ( $text string )
Return: 1 ( $text string )

- woo_footer_right

The HTML in the right column of the footer.

Parameters: 1 ( $text string )
Return: 1 ( $text string )