1. Documentação /
  2. Canvas: Hook/Filter Reference

Canvas: Hook/Filter Reference

Each function is listed with the priority at which it is hooked on. To hook something on before each hook set the priority setting lower. To hook on afterwards adjust the priority of your hook higher. Hooks are commonly set at priority 10, as are the Hook and Meta Managers. For more information on creating and using action and filter hooks, see Introduction to Hooks, Actions and Filters.

Visual hook reference

↑ Voltar Para o Topo
The Canvas home page annotated with its hooks and filters.

Header hooks

↑ Voltar Para o Topo

  • woo_top – Executed below the opening  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

↑ Voltar Para o Topo
  • 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

↑ Voltar Para o Topo
  • 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

Sidebar hooks

↑ Voltar Para o Topo
  • woo_sidebar_before – Executed before the opening #sidebar DIV tag
  • woo_sidebar_inside_before – Executed after the opening #sidebar DIV tag
  • woo_sidebar_inside_after – Executed before the closing #sidebar DIV tag
  • woo_sidebar_after – Executed after the closing #sidebar DIV tag

Footer hooks

↑ Voltar Para o Topo
  • 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

↑ Voltar Para o Topo
  • wp_head – Executed before the closing  tag
  • wp_footer – Executed before the closing tag

Filter Reference

↑ Voltar Para o Topo

woo_archive_title

↑ Voltar Para o Topo
  • The title on archive page templates (archive.php, category.php, tag.php, taxonomy.php)
  • Parameters: 3 ( $title, $before, $after )

woothemes_pagelinks_args

↑ Voltar Para o Topo
  • 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
  • Parameters: 1 ( $args array )
  • Return: 1 ( $args array )

the_title

↑ Voltar Para o Topo
  • The title of any page/post
  • Parameters: 3 ( $title, $before, $after )
  • Return: 1 ( $title string )

woo_post_more

↑ Voltar Para o Topo
  • The meta data after the title of each blog post
  • Parameters: 1 ( $text string )
  • Return: 1 ( $text string )

woo_footer_left

↑ Voltar Para o Topo
  • The HTML in the left column of the footer
  • Parameters: 1 ( $text string )
  • Return: 1 ( $text string )

woo_footer_right

↑ Voltar Para o Topo
  • The HTML in the right column of the footer
  • Parameters: 1 ( $text string )
  • Return: 1 ( $text string )

Hooked functions

↑ Voltar Para o Topo

after_setup_theme

↑ Voltar Para o Topo
  • woothemes_setup

get_template_part_content

↑ Voltar Para o Topo
  • woo_magazine_adjust_tumblog_widths ( Priority: 2 Number of Accepted Arguments: 10 )

woo_footer_top

↑ Voltar Para o Topo
  • woo_footer_sidebars ( Priority: 30 )

woo_head

↑ Voltar Para o Topo
  • woo_conditionals ( Priority: 10 )

woo_header_after

↑ Voltar Para o Topo
  • woo_nav ( Priority: 10 )

woo_loop_before

↑ Voltar Para o Topo
  • woo_author_box ( Priority: 10 )

woo_nav_inside

↑ Voltar Para o Topo
  • woo_nav_subscribe ( Priority: 10 )

woo_post_after

↑ Voltar Para o Topo
  • woo_postnav ( Priority: 10 )

woo_post_inside_after

↑ Voltar Para o Topo
  • woo_subscribe_connect

woo_post_inside_after_singular-post

↑ Voltar Para o Topo
  • woo_post_inside_after_default ( Priority: 10 )

woo_post_inside_before

↑ Voltar Para o Topo
  • woo_display_post_image ( Priority: 10 )

woo_top

↑ Voltar Para o Topo
  • woo_top_navigation ( Priority: 10 )

woo_tumblog_content_after

↑ Voltar Para o Topo
  • woo_tumblog_content

woo_tumblog_content_before

↑ Voltar Para o Topo
  • woo_tumblog_content

woothemes_add_css

↑ Voltar Para o Topo
  • woo_load_prettyphoto ( Priority: 10 )

woothemes_add_javascript

↑ Voltar Para o Topo
  • woo_load_prettyphoto ( Priority: 10 )

wp_footer

↑ Voltar Para o Topo
  • woo_widget_tabs_js

wp_head

↑ Voltar Para o Topo
  • woo_subscribe_connect_action ( Priority: 10 )

wp_print_scripts

↑ Voltar Para o Topo
  • woothemes_add_javascript

wp_print_styles

↑ Voltar Para o Topo
  • woothemes_add_css

Filtered Functions

↑ Voltar Para o Topo

body_class

↑ Voltar Para o Topo
  • woo_add_lightbox_body_class ( Priority: 10 )

comment_form_default_fields

↑ Voltar Para o Topo
  • woo_comment_form_fields ( Priority: 10 )

comment_form_defaults

↑ Voltar Para o Topo
  • woo_comment_form_args ( Priority: 10 )

comment_form_field_comment

↑ Voltar Para o Topo
  • woo_comment_form_comment ( Priority: 10 )

feed_link

↑ Voltar Para o Topo
  • woo_feedburner_link ( Priority: 10 )

option_woo_tumblog_audio_width

↑ Voltar Para o Topo
  • woo_magazine_tumblog_adjust_width_grid ( Priority: 10 )

option_woo_tumblog_image_width

↑ Voltar Para o Topo
  • woo_magazine_tumblog_adjust_width_grid ( Priority: 10 )

option_woo_tumblog_video_width

↑ Voltar Para o Topo
  • woo_magazine_tumblog_adjust_width_grid ( Priority: 10 )

posts_where

↑ Voltar Para o Topo
  • filter_where

pre_get_posts

↑ Voltar Para o Topo
  • woo_exclude_categories_homepage ( Priority: 10 )

template_include

↑ Voltar Para o Topo
  • woo_load_posts_page_blog_template ( Priority: 10 )

the_content

↑ Voltar Para o Topo
  • add_image_RSS

the_content_rss

↑ Voltar Para o Topo
  • woo_custom_tumblog_rss_output

the_excerpt_rss

↑ Voltar Para o Topo
  • add_image_RSS

widget_text

↑ Voltar Para o Topo
  • do_shortcode

woo_blog_template_query_args

↑ Voltar Para o Topo
  • woo_exclude_categories_blogtemplate ( Priority: 10 )

woo_breadcrumbs_args

↑ Voltar Para o Topo
  • woo_portfolio_filter_breadcrumbs_args ( Priority: 10 )

woo_content_templates

↑ Voltar Para o Topo
  • woo_content_templates_magazine ( Priority: 10 )

woo_filter_post_meta

↑ Voltar Para o Topo
  • woo_portfolio_post_meta ( Priority: 20 )

woo_load_feedback_js

↑ Voltar Para o Topo
  • __return_true ( Priority: 10 )

woo_post_more

↑ Voltar Para o Topo
  • woo_portfolio_post_more ( Priority: 20 )

wp_page_menu_args

↑ Voltar Para o Topo
  • woo_home_page_menu_args