feat: add widgets block editor control

pull/399/head
Seaton Jiang 2021-06-26 09:52:11 +08:00
parent 072005b664
commit 30ab6cf8b5
No known key found for this signature in database
GPG Key ID: 0E05070D261ACFEA
1 changed files with 2 additions and 0 deletions

View File

@ -368,6 +368,8 @@ function get_wpsmiliestrans()
if (!kratos_option('g_gutenberg',false)) {
// 禁用 Gutenberg 编辑器
add_filter('use_block_editor_for_post', '__return_false');
add_filter('gutenberg_use_widgets_block_editor', '__return_false');
add_filter('use_widgets_block_editor', '__return_false');
remove_action('wp_enqueue_scripts', 'wp_common_block_scripts_and_styles');
// 删除前端的block library的css资源