Change WordPress user roles and capabilities Forums Restrict or Permit access inside WordPress – how to Restrict Advanced Custom Field dropdown values based on user

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4425
    bander87
    Participant

    Hi Vladimir,

    I’m using Advanced Custom Fields. I have a dropdown of Page Links. Despite using the ‘edit selected posts and pages’ feature in the PRO version, all pages show up. I believe in ACF, there is a way to generate dynamic values from a dropdown. I’m thinking, if there is a way I can access the restricted IDs from the ‘edit selected posts and pages’ plugin, I will be able to filter pages to show.

    Any ideas?

    #4428
    bander87
    Participant

    Looks like this data is stored in the user meta data? I will try get_user_meta to retrieve it.

    #4429
    bander87
    Participant

    All set, turns out ACF has functionality for this

    acf/fields/post_object/query

    #4430
    Vladimir
    Keymaster

    Hi,

    Thanks for letting me know that you found a solution.
    Just in case it will be helpful, URE Pro offers a custom filter ure_edit_posts_access_id_list. You can get a list of posts ID (comma separated string) allowed/prohibited for editing to current user via this hook.

    Access restriction type (allow/block) is available via filter ure_edit_posts_access_restriction_type.

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