×

 

Home Contact Us Payments SC Commerce SC Commerce Docs SC Commerce Snippets

Simply Computing

We make websites. Simple.

Remove SC Commerce options from Customizer menu

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

		/**
 * Remove SC Commerce 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