Home Forums Front-end Issues Restrict access to front-end fields


Restrict access to front-end fields

  • I’m trying to create front-end access to a field group using acf_form (basic example from documentation) and by adding the function to the page the fields are visible for every user, not just editors and admins despite using the options in the location rules (ie: current user logged in, current user role.. etc).

    What am I missing?

    Thank you.

  • I don’t know if that’s the proper way, I wrapped acf_form inside a current_user_can WP condition.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Restrict access to front-end fields’ is closed to new replies.