wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_entity_fields_api_init › WordPress动作钩子

Since7.2.0
已弃用n/a
› do_action( 'wp_entity_fields_api_init' )
定义在:
文档:

Fires the first time the registered fields are read, after `init`.

Register or adjust fields here, with wp_register_entity_fields(), wp_update_entity_fields(), and wp_unregister_entity_fields(): it is the only time they run. The first read happens wherever the fields are needed: while handling a REST request as well as on `admin_footer` of the pages that load the editor script. A callback should register fields and nothing else; script modules, styles, and their enqueue hooks belong on `init`.




源码

do_action( 'wp_entity_fields_api_init' );