所有钩子列表:
muplugins_loaded 在必须使用的插件加载之后。
registered_taxonomy 对于类别,post_tag 等
Registered_post_type 用于帖子,页面等
plugins_loaded 加载活动插件和可插拔功能后。
sanitize_comment_cookies 注释cookie被清理后。
setup_theme 加载主题之前。
load_textdomain 对于默认域
after_setup_theme 通常用于初始化主题设置/选项。这是可用于主题的第一个动作挂钩,在激活主题的functions.php文件加载后立即触发。add_theme_support()应该在这里调用,因为init动作钩子来不及添加一些功能。在此阶段,当前用户尚未认证。
auth_cookie_malformed
auth_cookie_valid
set_current_user
在里面 通常由插件用来初始化。目前,当前用户已经通过身份验证。
└─ widgets_init 用于注册边栏。以“ init”优先级1触发(因此在优先级≥1的“ init”动作之前执行!)
register_sidebar 对于每个侧边栏和页脚区域
wp_register_sidebar_widget 对于每个小部件<