passing the game print pdf

This commit is contained in:
Antoine M 2024-06-10 09:34:26 +02:00
parent 1b2208bcd4
commit 1454129025

View File

@ -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;