Remove "add custom script" option

It violates wp.org „plugin territory“ guideline for themes
This commit is contained in:
koenemann 2016-05-19 10:41:07 +02:00
parent 266926f6c1
commit 14754a559d
1 changed files with 0 additions and 15 deletions

View File

@ -64,21 +64,6 @@ function understrap_theme_customize_register( $wp_customize ) {
'settings' => 'understrap_theme_slider_loop_setting' '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 <script>yourcode</script> or <style>yourstyle</style> tags.', 'understrap' ),
'section' => 'understrap_theme_script_options',
'type' => 'textarea',
'settings' => 'understrap_theme_script_code_setting'
) );
} }
add_action( 'customize_register', 'understrap_theme_customize_register' ); add_action( 'customize_register', 'understrap_theme_customize_register' );