Skip to content

Instantly share code, notes, and snippets.

@certainlyakey
Last active March 15, 2018 23:17
Show Gist options
  • Save certainlyakey/8f01c14535d149c7f3c9f191049845cf to your computer and use it in GitHub Desktop.
Save certainlyakey/8f01c14535d149c7f3c9f191049845cf to your computer and use it in GitHub Desktop.
Remove unnecessary sections from the theme customiser (Wordpress)
<?php
// Remove unnecessary sections from the theme customizer
function edit_customizer($wp_customize) {
$wp_customize->remove_section("colors");
$wp_customize->remove_section("custom_css");
// $wp_customize->remove_section("static_front_page");
}
add_action( "customize_register", "edit_customizer" );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment