add_setting( ALAGU_THEME_SETTINGS . '[enable-top-hook]', array( 'default' => alagu_get_option( 'enable-top-hook' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_tweek' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control_Switch( $wp_customize, ALAGU_THEME_SETTINGS . '[enable-top-hook]', array( 'type' => 'dt-switch', 'label' => esc_html__( 'Enable Top Hook', 'alagu'), 'section' => 'site-top-hook-section', 'description' => esc_html__('YES! to enable top hook.', 'alagu'), 'choices' => array( 'on' => esc_attr__( 'Yes', 'alagu' ), 'off' => esc_attr__( 'No', 'alagu' ) ) ) ) ); /** * Option : Top Hook */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[top-hook]', array( 'default' => alagu_get_option( 'top-hook' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_html' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control( $wp_customize, ALAGU_THEME_SETTINGS . '[top-hook]', array( 'type' => 'textarea', 'section' => 'site-top-hook-section', 'label' => esc_html__( 'Top Hook', 'alagu' ), 'description' => sprintf( esc_html__('Paste your top hook, Executes after the opening %s tag.', 'alagu'), '<body>') ) ) );