Retrieve Google API JSON data and store as WordPress Custom Fields

Question

I am trying to use Google Places API with WordPress. I am trying to create a function where I get the API data and store it as custom fields.

I found a similar answer, but it only deals with cache.

This answer helped but not in detail.

I want to use wp_remote_get() to retrieve JSON data.

My goal is to access any the custom fields data using get_post_meta() in single.php

0
, javascriptenthusiast 2 years 2019-12-29T02:28:21-05:00 0 Answers 101 views 0

Leave an answer

Browse
Browse