'1', 'phone_number' => '', 'agent_name' => 'Equipo de Soporte', 'agent_role' => 'Suele responder en pocos minutos', 'default_message' => '¡Hola! Me gustaría recibir más información sobre {page_title}. Enlace: {page_url}', 'multi_agent' => '0', 'agents' => array(), // Popup. 'popup_enabled' => '1', 'popup_title' => 'Inicia una conversación', 'popup_intro' => '¡Hola! ¿Cómo podemos ayudarte hoy? Escríbenos directamente a WhatsApp.', 'btn_cta_text' => 'Chatear por WhatsApp', // Diseño. 'position' => 'bottom-right', 'offset_x' => '20', 'offset_y' => '20', 'layout_type' => 'button_text', 'btn_text' => '¿Necesitas ayuda?', 'primary_color' => '#25D366', 'header_color' => '#075E54', 'animation' => 'pulse', 'device_visibility' => 'all', 'hide_on_pages' => array(), // WooCommerce. 'woo_enabled' => '1', 'woo_btn_position' => 'woocommerce_after_add_to_cart_button', 'woo_btn_text' => 'Pedir por WhatsApp', 'woo_message' => '¡Hola! Me interesa comprar "{product_name}" (SKU: {product_sku}, Precio: {product_price}). Enlace: {product_url}', 'woo_cart_enabled' => '1', 'woo_cart_btn_text' => 'Hacer consulta sobre mi carrito', // Analítica. 'track_ga4' => '1', 'track_pixel' => '1', // Globito de notificación. 'badge_enabled' => '1', 'badge_delay' => '3', // Disparadores automáticos. 'auto_open_delay' => '0', 'scroll_trigger' => '0', 'scroll_percent' => '50', 'exit_intent' => '0', // Horarios laborales. 'business_hours_enabled' => '0', 'business_days' => array( 'mon', 'tue', 'wed', 'thu', 'fri' ), 'business_start' => '09:00', 'business_end' => '18:00', 'offline_behavior' => 'offline_notice', 'offline_status_text' => 'Fuera de horario laboral', 'offline_notice' => 'En este momento estamos fuera de horario comercial. Envíanos tu consulta y te responderemos a primera hora.', // Código QR escritorio. 'qr_enabled' => '1', // Privacidad / RGPD. 'gdpr_enabled' => '0', 'gdpr_text' => 'Acepto la política de privacidad y el contacto vía WhatsApp.', // Sonido. 'sound_enabled' => '1', ); update_option( 'st_wa_settings', $default_settings ); } } register_activation_hook( __FILE__, 'st_wa_activate' ); /** * Main plugin deactivation hook. */ function st_wa_deactivate() { delete_transient( 'st_wa_cache' ); } register_deactivation_hook( __FILE__, 'st_wa_deactivate' ); /** * Initialize the plugin. */ function st_wa_init() { Solutiontech_WhatsApp::get_instance(); } add_action( 'plugins_loaded', 'st_wa_init' );