WordPress从后台自定义面板中删除所有的默认选项卡

发布:2021-01-23浏览次数:107 次

add_action( ‘customize_register’, ‘prefix_remove_css_section’, 15 );
function prefix_remove_css_section( $wp_customize ) {
$wp_customize->remove_section( ‘title_tagline’);
$wp_customize->remove_section( ‘colors’);
$wp_customize->remove_section( ‘header_image’);
$wp_customize->remove_section( ‘background_image’);
$wp_customize->remove_panel( ‘nav_menus’);
$wp_customize->remove_section( ‘static_front_page’); $wp_customize->remove_section( ‘custom_css’);
}

资源下载此资源仅限注册用户下载,请先

没有账号? 忘记密码?

无需注册,直接使用社交账号登录