false, 'debug' => false ), $atts ) ); if ( is_string( $debug ) ) { $debug = $debug == 'true' ? true : false; } $general_settings = (array) get_option( 'allioc_general_settings' ); ob_start(); allioc_get_template_part( 'chatbot', 'shortcode', true, array( 'debug' => $debug, 'input_text' => $general_settings['input_text'], 'sequence' => Allio::$sequence++ ) ); $html = ob_get_contents(); ob_end_clean(); $html = apply_filters( 'allioc_template_html', $html ); if ( $echo == true ) { echo $html; } return $html; } add_shortcode( 'allio_chatbot', 'allioc_chatbot_shortcode' );