passing page thumbnail in api

This commit is contained in:
Antoine M 2024-03-18 17:08:19 +01:00
parent 048735ab72
commit 3f64129269

View File

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