A simple, powerful and independent e-commerce platform.
Sell anything with ease.

Remove Classic Commerce options from Customizer menu

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

/**
 * Remove Classic Commerce options from Customizer menu
 */

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

function cc_disable_customizer_menu_options() {

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

}
View Raw Code ID: 1120