jQuery(document).ready(function ($) {
    $(document).on('click', '.compibot-wp-rocket-notice .notice-dismiss', function () {
        console.log('[Compibot Debug] Aviso de WP Rocket cerrado.');
        $.post(compibotAjax.ajaxurl, {
            action: 'compibot_dismiss_wp_rocket_notice',
            nonce: compibotAjax.nonce
        }).done(function () {
            console.log('[Compibot Debug] Solicitud AJAX completada con éxito.');
        }).fail(function () {
            console.error('[Compibot Debug] Error en la solicitud AJAX.');
        });
    });
});
