Hybrid 常用Action
Home页面流程图
- hybrid_head()
- wp_haed()
- body
- hybrid_before_html()—action,默认没有被hook
- div#body-container
- hybrid_before_header()—action,默认没有被hook
- div#header-container
- div#header
- hybrid_header()
- end#header
- end#header-container
- hybrid_after_header()
- div#container
- hybrid_before_container()—action,默认没有被hook
- div#content
- hybrid_before_content()
- /wp loop begin/
- div.hybrid_post_class()
- h2.post-title inline
- p.byline inline
- div.entry-content inline
- p.entry-meta inline
- end.hybrid_post_class()
- /end wp loop/
- hybrid_after_content()
- end#content
- hybrid_after_container()
- end#container
- div#footer-container
- hybrid_before_footer()
- div#footer
- hybrid_footer()
- wp_footer()
- end#footer
- hybrid_after_footer()—action,默认没有被hook
- end#footer-container
- end#body-container
- /body
hook到hybrid_head()的函数列表
- hybrid_meta_content_type()
- hybrid_meta_robots()
- hybrid_meta_author()
- hybrid_meta_copyright()
- hybrid_meta_revised()
- hybrid_meta_abstract()
- hybrid_meta_description()
- hybrid_meta_keywords()
- hybrid_meta_template()
- wp_generator()
- hybrid_favicon()
- hybrid_head_feeds()
- hybrid_head_pingback()
- hybrid_head_breadcrumb()
hook到hybrid_header()的函数列表
- hybrid_site_title() —提供同名filter,参数为标题包括其html tag,没有被hook
- hybrid_site_description() —提供同名filter,参数为站点描述,包括其html tag,没有被hook
hook到hybrid_after_header()的函数列表
- hybrid_page_nav() —启动两个action,并提供一个同名filter,参数为导航条包括其html tag,没有被hook
hook到hybrid_before_content()的函数列表
- hybrid_breadcrumb() —提供一个同名filter和一个名为hybrid_breadcrumb_args的filter
- hybrid_get_utility_before_content() —该函数打印位于Content之前的Sidebar,在Hybrid中被赋予一个名称为Utility
hook到hybrid_after_content()的函数列表
- hybrid_get_utility_after_content() —该函数打印位于Content之后的Sidebar
- hybrid_navigation_links() —该函数打印WP自带的简单页面导航Prev和Next
hook到hybrid_after_container()的函数列表
- hybrid_get_primary() —该函数首先提供一个filter,名为hybrid_primary_var,参数sidebar_id,如果传入false可以关闭侧边栏,该函数打印主侧边栏,并在此之前和之后分别触发一个action
- hybrid_get_secondary() —原理基本上和上一个相同,提供的filter名字为hybrid_secondary_var
- hybrid_insert() —提供一个同名filter,参数为要打印出来的内容,默认为false,这是专门给用户用来添加sidebar的hook
hook到hybrid_before_footer()的函数列表
- hybrid_get_subsidiary() —其功能等同于侧边栏,同上面两个侧边栏
hook到hybrid_footer()的函数列表
- hybrid_copyright() —打印版权信息,提供同名filter
- hybrid_credit() —与上面一个类似,也提供同名filter
- hybrid_query_counter() —打印页面生成时间和数据库查询数的函数
由hybrid_page_nav()触发的action
- hybrid_before_page_nav() —action,默认没有被hook
- hybrid_after_page_nav() —action,默认没有被hook
由hybrid_get_primary()和hybrid_get_secondary()和hybrid_get_subsidiary() 触发的action
- hybrid_before_primary() —action,默认没有被hook
- hybrid_after_primary() —action,默认没有被hook
- hybrid_before_secondary() —action,默认没有被hook
- hybrid_after_secondary() —action,默认没有被hook
- hybrid_before_subsidiary() —action,默认没有被hook
- hybrid_after_subsidiary() —action,默认没有被hook