airesvsg / acf-to-rest-api

Exposes Advanced Custom Fields Endpoints in the WordPress REST API
https://wordpress.org/plugins/acf-to-rest-api/
1.33k stars 110 forks source link

Fix: Get field group with user_form rule #362

Closed JUVOJustin closed 2 years ago

JUVOJustin commented 3 years ago

If a field group has a user_form or a user role rule, it wasn´t able to be updated. acf_get_field_groups will never return any fields without whitelisting all user forms and passing the user id.

I think this change should not affect other functionality than updates for these specific field groups.

This could be related to #359 and #351