Wordpress hides widget section from Customizer

So, I'm trying to get rid of these widgets that appear in the Customizer to simplify the setup.

I can remove the tagline and the default site title with this code:

$wp_customize->remove_section( 'title_tagline' );
$wp_customize->remove_section( 'static_front_page' );

Any ideas on how to remove widgets using similar code?

+4
source share
1 answer

I found this

  $wp_customize->remove_panel('widgets');

This works for me.

+4
source

Source: https://habr.com/ru/post/1546297/


All Articles