This document describes all custom events dispatched by Joinchat Core and Joinchat Premium with its addons. These events can be listened to using document.addEventListener() to extend functionality or integrate with third-party tools.
Documentación completa de todos los eventos personalizados (Custom Events) que dispara Joinchat Chat Funnels.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * JoinChat Enhanced Conversions | |
| * Captura email y teléfono y envía conversiónes mejoradas a Google Ads utilizando gtag.js | |
| * | |
| * Configuración: | |
| * window.JOINCHAT_EC_CONFIG = { | |
| * conversionId: 'AW-123456789/AbC-D_efG-h12_34-567', // ID de conversión (opcional) | |
| * sendHashed: true, // Hashear email (recomendado) | |
| * autoSend: false // Enviar automáticamente al capturar email (opcional) | |
| * }; |
Some WordPress optimization plugins allow you to view the original page without applying optimizations to compare and check if it works correctly before applying them.
You can view the original page by adding a query parameter to the URL.
Note that the first parameter of the URL is preceded by "?" and subsequent parameters are preceded by "&".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Joinchat AI disable nonce validation in front requests to prevent page cache with expired nonces. | |
| */ | |
| add_action( 'rest_api_init', function() { | |
| // Only modify the authentication for the Joinchat AI refresh token endpoint. | |
| if ( ! isset( $_SERVER['REQUEST_URI'] ) || ! str_contains( wp_unslash( $_SERVER['REQUEST_URI'] ), '/joinchat-ai/v1/refresh_token' ) ) { | |
| return; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Snippet 1: Set current CTA always as "not viewed". | |
| * Chat Window will show with your Joinchat settings. | |
| */ | |
| add_filter( 'joinchat_get_settings', function( $settings, $obj ) { | |
| $settings['is_viewed'] = false; | |
| return $settings; | |
| }, 10, 2 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Joinchat use Product category settings on product page | |
| * | |
| * Use custom Joinchat settings from the first category of the product | |
| * with custom Joinchat settings. | |
| * | |
| * @param array $settings | |
| * @return array |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: Images to WebP | |
| Plugin URI: https://www.paypal.me/jakubnovaksl | |
| Description: Convert JPG, PNG and GIF images to WEBP, speed up your web | |
| Version: 4.2 | |
| Author: KubiQ | |
| Author URI: https://kubiq.sk | |
| Text Domain: images-to-webp | |
| Domain Path: /languages |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: Creame Optimize | |
| Plugin URI: https://crea.me/ | |
| Description: Optimizaciones de Creame para mejorar tu <em>site</em>. | |
| Version: 2.1.5 | |
| Author: Creame | |
| Author URI: https://crea.me/ | |
| License: MIT License | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Wc_updateVariationInCart { | |
| public function __construct() { | |
| if ( $this->woo_ck_wuvic_is_woocommerce_active() ) { | |
| // add js file to cart | |
| add_action( 'wp_head', array( $this, 'woo_ck_wuvic_hook_js' ) ); |
NewerOlder