Last active
March 10, 2020 21:08
-
-
Save ARCHTKT/ac884fb0725607dd497e0ce67704c5b8 to your computer and use it in GitHub Desktop.
Remove Storefront default customizer panels
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /* No copiar esta linea */ | |
function aspro_remove_storefront_customizer() { | |
global $wp_customize; | |
$wp_customize->remove_section( 'storefront_footer' ); | |
$wp_customize->remove_section( 'background_image' ); | |
$wp_customize->remove_section( 'colors' ); | |
$wp_customize->remove_section( 'storefront_typography' ); | |
$wp_customize->remove_section( 'storefront_buttons' ); | |
$wp_customize->remove_section( 'storefront_more'); | |
} | |
add_action( 'customize_register', 'aspro_remove_storefront_customizer', 99 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment