Created
October 3, 2018 19:32
-
-
Save alexmustin/08a420dbd17d3cb1d2fa5d0b701ccb31 to your computer and use it in GitHub Desktop.
WordPress Customizer - Remove existing Controls, Panels, and Sections
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 | |
add_action( "customize_register", "am_customizer_mods" ); | |
function am_customizer_mods( $wp_customize ) { | |
//* Remove 'header image' Control | |
$wp_customize->remove_control("header_image"); | |
//* Remove 'widgets' Panel | |
$wp_customize->remove_panel("widgets"); | |
//* Remove 'Colors' Section | |
$wp_customize->remove_section("colors"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment