Remove WooCommerce options from Customizer menu

This code will remove the WooCommerce option in the Customizer window side menu, in case you want to stop clients being able to change any of the settings.

		/**
 * Remove WooCommerce options from Customizer menu
 */

add_action('customize_register', 'sc_woo_disable_customizer_menu_options', 11);

function sc_woo_disable_customizer_menu_options() {

  global $wp_customize;
  $wp_customize->remove_panel('woocommerce');

}
	
View Raw Code ID: 91120