• I am pulling some data from a third-party API into a WP site, and client requested that login credentials for the API are editable in admin. However, if I store them in ACF fields on Options page they will be exposed.

    Is there a way to hide a specific field/group or specific options page from REST API? I tried the below, but it ended up hiding all options pages, and I need some of that data to be public.

    add_filter( ‘acf/rest_api/option/get_fields’, ‘__return_false’ );

  • The topic ‘Hide fields from REST API’ is closed to new replies.