"Hide from REST API" not working

Support MB REST API "Hide from REST API" not working

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #49152
    Michael KernMichael Kern
    Participant

    When I perform a GET request against my site's REST API, the fields marked "Hide from REST API" still appear in the response to my GET request. Am I misunderstanding the usage of this setting? Shouldn't the field be not included in the REST API response?

    #49158
    PeterPeter
    Moderator

    Hello Michael,

    Thanks for reaching out.

    The field shouldn't be available in the Rest response when you enable the option "Hide from REST API". I've rechecked this feature and it works well on my local site.

    You can visit the Rest URL like https://site.com/wp-json/wp/v2/posts/post-id
    and see if the field is available there.

    If this option doesn't work, please export the field group to a JSON file and share it with me. I will help you investigate the issue. Following the documentation https://docs.metabox.io/extensions/meta-box-builder/#export--import

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.