'wordpress_plugin' ); // {agent] acts as dummy agent id, TA detects invalid agent id and redirects to the working agent id // without the dummy id, the url gets malformed and the user is redirected to the /performance page $ai_agent_settings_url = \AICT\aict_get_app_url( '/team/ai-agents/agent/profile', $tracking_query ); $teammates_url = \AICT\aict_get_app_url( '/team/teammates', $tracking_query ); $website_widgets_url = \AICT\aict_get_app_url( '/settings/websites', $tracking_query ); $traffic_url = \AICT\aict_get_app_url( '/customers/real-time/all', $tracking_query ); $is_woocommerce = ! $show_complete_setup && \AICT\aict_is_woocommerce_active(); $show_woocommerce_cta = $is_woocommerce && 'success' !== $woocommerce_state; $woocommerce_url = $show_woocommerce_cta ? \AICT\aict_get_oauth_initiate_url() : ''; wp_enqueue_style( 'aict-fonts', AICT_PLUGIN_URL . '/includes/css/fonts.css', array(), AICT_PLUGIN_VERSION ); wp_enqueue_style( 'aict-successfully-connected', AICT_PLUGIN_URL . '/includes/css/successfully-connected.css', array(), AICT_PLUGIN_VERSION ); wp_enqueue_script( 'aict-successfully-connected', AICT_PLUGIN_URL . '/includes/js/successfullyConnected.js', array( 'jquery' ), AICT_PLUGIN_VERSION, true ); wp_localize_script( 'aict-successfully-connected', 'aictSuccessfullyConnected', array( 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'aict_disconnect_account' ), 'redirectUrl' => admin_url( 'admin.php?page=aict_settings' ), 'confirmMessage' => __( 'Are you sure you want to disconnect from Text?', 'ai-chatbot-by-text' ), 'showCompleteSetup' => $show_complete_setup, 'hasWoocommerceState' => '' !== $woocommerce_state, ) ); $current_user = wp_get_current_user(); $email = $current_user->user_email ?? ''; $organization_id = get_option( 'aict_organization_id', '' ); $organization_text = $organization_id ? $organization_id : __( 'Not available', 'ai-chatbot-by-text' ); ?> <?php echo esc_html( $page_title ); ?>
WordPress and Text connection