From 3f6412926958b86c402ae247faf0c78311a2043d Mon Sep 17 00:00:00 2001 From: Antoine M Date: Mon, 18 Mar 2024 17:08:19 +0100 Subject: [PATCH] passing page thumbnail in api --- includes/api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/api.php b/includes/api.php index abee497..7fc122d 100644 --- a/includes/api.php +++ b/includes/api.php @@ -186,6 +186,7 @@ function get_all_games_datas($request) $currentGameDatas = array( 'gameId' => $post->ID, 'gameTitle' => $post->post_title, + 'gameCover' => get_the_post_thumbnail_url($post->ID, 'full'), ); if (!$post->post_content || empty($post->post_content)) continue;