fix fix fix

This commit is contained in:
IGNY8 VPS (Salman)
2025-12-01 00:13:46 +00:00
parent 90b532d13b
commit 42bc24f2c0
11 changed files with 1592 additions and 26 deletions

View File

@@ -77,6 +77,9 @@ function igny8_sync_post_status_to_igny8($post_id, $post, $update) {
update_post_meta($post_id, '_igny8_wordpress_status', $post_status);
update_post_meta($post_id, '_igny8_last_synced', current_time('mysql'));
error_log("IGNY8: Synced post {$post_id} status ({$post_status}) to task {$task_id}");
// Send status webhook to IGNY8 backend
igny8_send_status_webhook($post_id, array('content_id' => $content_id), $post_status);
} else {
error_log("IGNY8: Failed to sync post status: " . ($response['error'] ?? 'Unknown error'));
}