connect-telegram

Canvas: Tham chiếu Hook/Filter

Mỗi hàm được liệt kê cùng với mức độ ưu tiên mà nó được móc vào. Để móc vào trước mỗi móc, đặt cài đặt ưu tiên thấp hơn. Để móc vào sau, điều chỉnh ưu tiên của móc của bạn cao hơn. Móc thường được đặt ở mức ưu tiên 10, giống như Hook và Meta Managers. Để biết thêm thông tin về việc tạo và sử dụng hook và filter, xem Giới thiệu về Hooks, Actions and Filters .

Tham chiếu hình ảnh hook

Trang chủ Canvas được chú thích với các hook và filter của nó.

Hook header

  • woo_top – Được thực thi dưới thẻ mở
  • woo_header_before – Được thực thi trước thẻ mở #header DIV
  • woo_header_inside – Được thực thi ở phía trên, bên trong thẻ DIV #header
  • woo_header_after – Được thực thi sau thẻ đóng DIV #header

Hook khu vực nội dung chính

  • woo_content_before – Được thực thi trước thẻ mở #content DIV
  • woo_main_before – Được thực thi trước thẻ mở DIV #main
  • woo_loop_before – Được thực thi trước Vòng lặp WordPress
  • loop_start – Được thực thi ở đầu Vòng lặp WordPress
  • loop_end – Được thực thi ở cuối Vòng lặp WordPress
  • woo_loop_after – Được thực thi sau Vòng lặp WordPress
  • woo_main_after – Được thực thi sau thẻ đóng DIV #main
  • woo_content_after – Được thực thi sau thẻ đóng DIV #content

Hook bài đăng

  • woo_post_before – Được thực hiện trước mỗi bài đăng
  • woo_post_inside_before – Được thực hiện ở phía trên, bên trong thẻ DIV của mỗi bài đăng
  • woo_post_inside_after – Được thực hiện ở phía dưới, bên trong thẻ DIV của mỗi bài đăng
  • woo_post_after – Được thực hiện sau mỗi bài đăng

Hook thanh bên

  • woo_sidebar_before – Được thực hiện trước thẻ mở DIV #sidebar
  • woo_sidebar_inside_before – Được thực hiện sau thẻ mở DIV #sidebar
  • woo_sidebar_inside_after – Được thực hiện trước thẻ đóng DIV #sidebar
  • woo_sidebar_after – Được thực thi sau thẻ đóng DIV #sidebar

Hook footer

  • woo_footer_top – Được thực thi ở đầu của file footer.php
  • woo_footer_before – Được thực thi trước thẻ mở DIV #footer
  • woo_footer_inside – Được thực thi ở phía trên, bên trong thẻ DIV #footer
  • woo_footer_left_before – Được thực thi trước nội dung của cột bên trái trong thẻ DIV #footer
  • woo_footer_left_after – Được thực thi sau nội dung của cột bên trái trong thẻ DIV #footer
  • woo_footer_right_before – Được thực thi trước nội dung của cột bên phải trong thẻ DIV #footer
  • woo_footer_right_after – Được thực thi sau nội dung của cột bên phải trong thẻ DIV #footer
  • woo_footer_after – Được thực thi sau thẻ đóng DIV #footer

Hook WordPress phổ biến

  • wp_head – Được thực thi trước thẻ đóng
  • wp_footer – Được thực thi trước thẻ đóng

Tham chiếu Filter

woo_archive_title

  • Tiêu đề trên các mẫu trang lưu trữ (archive.php, category.php, tag.php, taxonomy.php)
  • Tham số: 3 ( $title, $before, $after )

woothemes_pagelinks_args

  • Các đối số được sử dụng khi tạo liên kết phân trang trên bài viết/trang nhiều trang
  • Đối với các đối số có sẵn, xem trang này trên WordPress Codex
  • Tham số: 1 ( $args array )
  • Return: 1 ( $args array )

the_title

  • Tiêu đề của bất kỳ trang/bài đăng nào
  • Tham số: 3 ( $title, $before, $after )
  • Return: 1 ( $title string )

woo_post_more

  • Dữ liệu meta sau tiêu đề của mỗi bài đăng trên blog
  • Tham số: 1 ( $text string )
  • Return: 1 ( $text string )

woo_footer_left

  • HTML ở cột bên trái của chân trang
  • Tham số: 1 ( $text string )
  • Return: 1 ( $text string )

woo_footer_right

  • HTML ở cột bên phải của chân trang
  • Tham số: 1 ( $text string )
  • Return: 1 ( $text string )

Hàm được móc

after_setup_theme

  • woothemes_setup

get_template_part_content

  • woo_magazine_adjust_tumblog_widths ( Ưu tiên: 2 Số lượng Đối số Chấp nhận: 10 )

woo_footer_top

  • woo_footer_sidebars ( Ưu tiên: 30 )

woo_head

  • woo_conditionals ( Ưu tiên: 10 )

woo_header_after

  • woo_nav ( Ưu tiên: 10 )

woo_loop_before

  • woo_author_box ( Ưu tiên: 10 )

woo_nav_inside

  • woo_nav_subscribe ( Ưu tiên: 10 )

woo_post_after

  • woo_postnav ( Ưu tiên: 10 )

woo_post_inside_after

  • woo_subscribe_connect

woo_post_inside_after_singular-post

  • woo_post_inside_after_default ( Ưu tiên: 10 )

woo_post_inside_before

  • woo_display_post_image ( Ưu tiên: 10 )

woo_top

  • woo_top_navigation ( Ưu tiên: 10 )

woo_tumblog_content_after

  • woo_tumblog_content

woo_tumblog_content_before

  • woo_tumblog_content

woothemes_add_css

  • woo_load_prettyphoto ( Ưu tiên: 10 )

woothemes_add_javascript

  • woo_load_prettyphoto ( Ưu tiên: 10 )

wp_footer

  • woo_widget_tabs_js

wp_head

  • woo_subscribe_connect_action ( Ưu tiên: 10 )

wp_print_scripts

  • woothemes_add_javascript

wp_print_styles

  • woothemes_add_css

Hàm được lọc

body_class

  • woo_add_lightbox_body_class ( Ưu tiên: 10 )

comment_form_default_fields

  • woo_comment_form_fields ( Ưu tiên: 10 )

comment_form_defaults

  • woo_comment_form_args ( Ưu tiên: 10 )

comment_form_field_comment

  • woo_comment_form_comment ( Ưu tiên: 10 )

feed_link

  • woo_feedburner_link ( Ưu tiên: 10 )

option_woo_tumblog_audio_width

  • woo_magazine_tumblog_adjust_width_grid ( Ưu tiên: 10 )

option_woo_tumblog_image_width

  • woo_magazine_tumblog_adjust_width_grid ( Ưu tiên: 10 )

option_woo_tumblog_video_width

  • woo_magazine_tumblog_adjust_width_grid ( Ưu tiên: 10 )

posts_where

  • filter_where

pre_get_posts

  • woo_exclude_categories_homepage ( Ưu tiên: 10 )

template_include

  • woo_load_posts_page_blog_template ( Ưu tiên: 10 )

the_content

  • add_image_RSS

the_content_rss

  • woo_custom_tumblog_rss_output

the_excerpt_rss

  • add_image_RSS

widget_text

  • do_shortcode

woo_blog_template_query_args

  • woo_exclude_categories_blogtemplate ( Ưu tiên: 10 )

woo_breadcrumbs_args

  • woo_portfolio_filter_breadcrumbs_args ( Ưu tiên: 10 )

woo_content_templates

  • woo_content_templates_magazine ( Ưu tiên: 10 )

woo_filter_post_meta

  • woo_portfolio_post_meta ( Ưu tiên: 20 )

woo_load_feedback_js

  • __return_true ( Ưu tiên: 10 )

woo_post_more

  • woo_portfolio_post_more ( Ưu tiên: 20 )

wp_page_menu_args

  • woo_home_page_menu_args
TĂNG TRƯỞNG DOANH SỐ CÙNG BURGERPRINTS!
BẮT ĐẦU

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

preloader