最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

init - Which functionsclasses are available during SHORTINIT?

programmeradmin1浏览0评论

When we want to load WP core with:

define( 'SHORTINIT', true );
require( __DIR__ .'/wp-load.php');

Which WordPress functions are available for us? i.e. get_option, WP_Query ... or which ones are available then? Is there any documentation?

When we want to load WP core with:

define( 'SHORTINIT', true );
require( __DIR__ .'/wp-load.php');

Which WordPress functions are available for us? i.e. get_option, WP_Query ... or which ones are available then? Is there any documentation?

Share Improve this question edited Aug 11, 2019 at 11:41 T.Todua asked Aug 11, 2019 at 7:40 T.ToduaT.Todua 5,8609 gold badges52 silver badges79 bronze badges
Add a comment  | 

1 Answer 1

Reset to default -2

I've found they can be listed by get_declared_classes(), get_defined_functions(), which return all list of available functions.

(full list is here )

发布评论

评论列表(0)

  1. 暂无评论