From 14754a559deea81bedaaa3ca04519a5b1f479ad0 Mon Sep 17 00:00:00 2001 From: koenemann Date: Thu, 19 May 2016 10:41:07 +0200 Subject: [PATCH] Remove "add custom script" option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It violates wp.org „plugin territory“ guideline for themes --- inc/customizer.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/inc/customizer.php b/inc/customizer.php index 77d974b..2146f1b 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -64,21 +64,6 @@ function understrap_theme_customize_register( $wp_customize ) { 'settings' => 'understrap_theme_slider_loop_setting' ) ); - $wp_customize->add_section( 'understrap_theme_script_options', array( - 'title' => __( 'Add custom code snippet', 'understrap' ) - ) ); - - $wp_customize->add_setting( 'understrap_theme_script_code_setting', array( - 'default' => '', - 'sanitize_js_callback' => 'esc_js' - ) ); - - $wp_customize->add_control( 'understrap_theme_script_code', array( - 'label' => __( 'Add custom header code here. Like or tags.', 'understrap' ), - 'section' => 'understrap_theme_script_options', - 'type' => 'textarea', - 'settings' => 'understrap_theme_script_code_setting' - ) ); } add_action( 'customize_register', 'understrap_theme_customize_register' );