block_editor_settings
apply_filters( ‘block_editor_settings’, array $editor_settings , WP_Post $post )
过滤器挂钩:过滤要传递到块编辑器的设置。
Filter Hook: Filters the settings to pass to the block editor.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$editor_settings | (array) | 默认编辑器设置。 |
$post | (WP_Post) | 正在编辑文章。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.0.0 | wp-admin/edit-form-blocks.php:399 | 0 | 0 |
block_editor_settings 为WP2原创文章,链接:https://www.wp2.cn/hook/block_editor_settings/