fix fix fix
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user