ACF to REST API
Available here: https://github.com/airesvsg/acf-to-rest-api
Exposes ACF endpoints that would be otherwise missing.
Get values from options pages
GET https://example.com/wp-json/acf/v3/options/page_settings/
where page_settings
identifies the options page in question.
Returns:
|
|
To update values
POST https://example.com/wp-json/acf/v3/options/page_settings/
|
|
Attention: The json key is actually “fields” here, not the “acf” that is returned with the GET
call. 🤷♂️
Doesn’t work, returns error 500!
Add this to your functions.php, as stated in https://github.com/airesvsg/acf-to-rest-api/issues/56
|
|