wp_send_json_success(array( 'message' => 'Search Console sync completed', 'posts_updated' => 0 )); } public function ajax_trigger_manual_processing() { if (!check_ajax_referer('spodek_manual_process_nonce', 'nonce', false)) { wp_send_json_error(array('message' => 'Security check failed')); return; } if (!current_user_can('manage_options')) { wp_send_json_error(array('message' => 'Insufficient permissions')); return; }