add_setting( ALAGU_THEME_SETTINGS . '[enable-content-before-hook]', array( 'default' => alagu_get_option( 'enable-content-before-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-content-before-hook]', array( 'type' => 'dt-switch', 'label' => esc_html__( 'Enable Content Before Hook', 'alagu'), 'section' => 'site-content-before-hook-section', 'description' => esc_html__('YES! to enable content before hook.', 'alagu'), 'choices' => array( 'on' => esc_attr__( 'Yes', 'alagu' ), 'off' => esc_attr__( 'No', 'alagu' ) ) ) ) ); /** * Option : Content Before Hook */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[content-before-hook]', array( 'default' => alagu_get_option( 'content-before-hook' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_html' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control( $wp_customize, ALAGU_THEME_SETTINGS . '[content-before-hook]', array( 'type' => 'textarea', 'section' => 'site-content-before-hook-section', 'label' => esc_html__( 'Content Before Hook', 'alagu' ), 'description' => sprintf( esc_html__('Paste your content before hook, Executes before the opening %s tag.', 'alagu'), '<#primary>' ) ) ) );