jQuery(document).ready(function($) { $('#start-processing-btn').on('click', function(e) { e.preventDefault(); // Ausgewählte Domains sammeln const domainIds = []; $('.domain-checkbox:checked').each(function() { domainIds.push($(this).val()); }); if (domainIds.length === 0) { alert('Bitte wählen Sie mindestens eine Domain aus'); return; } // AJAX-Anfrage senden $.post(ajaxurl, { action: 'start_domain_processing', domain_ids: domainIds, nonce: domainProcessing.nonce }, function(response) { if (response.success) { $('#processing-status').html(`

${response.data.message}

Verarbeitete Domains: ${response.data.domains.join(', ')}

`); } else { $('#processing-status').html(`

Fehler: ${response.data}

`); } }).fail(function() { $('#processing-status').html(`

Serverfehler bei der Anfrage

`); }); }); }); Privatblogger.de Seite 102 Täglich frische Blogs