wpseek.com
WordPress开发者和主题制作者的搜索引擎
_wp_add_entity_field_modules_to_editor_script is private and should not be used in themes or plugins directly.
_wp_add_entity_field_modules_to_editor_script › WordPress Function
Since7.2.0
已弃用n/a
› _wp_add_entity_field_modules_to_editor_script ( $scripts = null )
| 访问: |
|
| 参数: |
|
| 定义在: |
|
| 文档: |
Declares the script modules of the entity fields as dependencies of the editor script, see _wp_add_entity_modules_to_editor_script().
The fields are loaded by the editor package, see packages/editor/src/dataviews/store/private-resolvers.ts in Gutenberg, which means any screen that wants to use this mechanism needs to load the editor script. It is hooked toadmin_footer without arguments, so the global scripts
registry is used. In other scenarios (tests), the scripts are given directly.