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