init
动作钩子
do_action( 'init' )
- 定义位置
-
-
wp-settings.php
, line 617
-
wp-settings.php
- 引入
- 1.5.0
- 弃用
- –
Fires after WordPress has finished loading but before any headers are sent.
Most of WP is loaded at this stage, and the user is authenticated. WP continues
to load on the {@see ‘init’} hook that follows (e.g. widgets), and many plugins instantiate
themselves on it for all sorts of reasons (e.g. they need a user, a taxonomy, etc.).
If you wish to plug an action once WP is loaded, use the {@see ‘wp_loaded’} hook below.
do_action( 'init' );
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。