From 1454129025af88c46a6ee4e5bf5912e16801fe51 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Mon, 10 Jun 2024 09:34:26 +0200 Subject: [PATCH] passing the game print pdf --- includes/api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/api.php b/includes/api.php index 7fc122d..9e27130 100644 --- a/includes/api.php +++ b/includes/api.php @@ -187,6 +187,7 @@ function get_all_games_datas($request) 'gameId' => $post->ID, 'gameTitle' => $post->post_title, 'gameCover' => get_the_post_thumbnail_url($post->ID, 'full'), + 'gamePrintPdf' => get_field('print_pdf', $post->ID) ? get_field('print_pdf', $post->ID)['url'] : null, ); if (!$post->post_content || empty($post->post_content)) continue;