📜  禁用侧边栏小部件 wordpress 5.8 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:03.185000             🧑  作者: Mango

代码示例1
//Disable new gutenberg widgets (Wp 5.8) ON your functions.php file 
add_filter( 'use_widgets_block_editor', '__return_false' );