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