直接从源pluggable.php
:
<?php
/**
* These functions can be replaced via plugins. If plugins do not redefine these
* functions, then these will be used instead.
*
* @package WordPress
*/
?>
这就是你的答案
pluggable.php
是
intended to be overridden by Plugins.
回复:装载顺序:
看见this post by Konstantin Kovshenin. 相关要点(10-15):
wp_get_active_and_valid_plugins()
retrieves the list of all active plugin files for loading and includes them. This is the point where your plugin code gets executed, functions, classes defined, etc.- Includes
wp-includes/wp-pluggable.php
and wp-includes/wp-pluggable-deprecated.php
其中包括可以由插件重新定义的函数(以及不推荐使用的函数)。喜欢wp_mail()
对于更高级的邮件,wp_authenticate()
其他身份验证方法等wp_set_internal_encoding()
调用以根据blog\\u charset选项设置内部编码 wp_cache_postload()
如果启用了对象缓存,则调用- At this point a
plugins_loaded
action is fired. 这是您可以挂接的第一个操作(在加载非多站点WordPress插件之前启动muplugins\\u后),它出现在初始化之前,因为WordPress尚未初始化,至少尚未完全初始化
So,简化:
加载插件pluggable.php
已加载plugins_loaded
操作被触发,这是预期的顺序。
(注:这一切都发生在wp-settings.php
.)