block_editor_settings_all

过滤钩子
apply_filters( 'block_editor_settings_all', $editor_settings, $block_editor_context )
参数
  • (array) $editor_settings Default editor settings.
    Required:
  • (WP_Block_Editor_Context) $block_editor_context The current block editor context.
    Required:
定义位置
相关勾子
wp_editor_settingswp_code_editor_settingsblock_categories_allenqueue_block_editor_assetswp_editor_set_quality
相关方法
get_block_editor_settingsget_default_block_editor_settingsblock_editor_rest_api_preloadget_block_editor_server_block_settingsget_legacy_widget_block_editor_settingswp_get_code_editor_settings
引入
5.8.0
弃用
-

block_editor_settings_all: 这是WordPress中的一个过滤器钩子,允许开发者修改区块编辑器的设置。block_editor_settings_all钩子将默认设置作为一个参数传递,钩子函数可以返回一个修改后的设置数组来代替使用。这对于调整区块编辑器的行为或外观很有用。

过滤传递给所有编辑类型的块编辑器的设置。

$editor_settings = apply_filters( 'block_editor_settings_all', $editor_settings, $block_editor_context );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-14 12:36:31

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: