Bu eklenti, WordPress'in son 3 ana dağıtımı ile test edilmemiş. Artık bakımı yapılmıyor veya desteklenmiyor olabilir ve WordPress'in daha güncel sürümleriyle birlikte kullanıldığında uyumluluk sorunları olabilir.

ACF User Role Field Setting


Warning: Support for Sub Fields Removed as of Version 4.0.0

This is an add on plugin for Advanced Custom Fields (ACF) Version 5.

This plugin will not provide any functionality if ACF5 is not installed.

This plugin adds a field setting to all field types so that user roles allowed to edit the field can
be selected. Only those roles selected for the field will be able to edit the field.

Github Repository

This plugin is also on GitHub

Excluded Field Types

Most of the time it would not make sense for a tab field, unless all of the fields in the tab were set the same, in other words, removing a tab should remove all the fields in that tab. That’s not something that I can do at this point.

I’m not sure about the clone field, I haven’t worked with it much. You can test it out if you want.

I have also removed support for repeater, group and flexible content fields because I cannot preserver the values of these fields if they are not editable in the ACF interface. Please note that I do not know what the effect of allowing user role settings on these fields will be.

There is a filter so that you can adjust the types of fields that are excluded. Here is an example


  add_filter('acf/user_role_setting/exclude_field_types', 'user_role_setting_excluded_field_types');
  function user_role_setting_excluded_field_types($exclude) {
      $exclude holds an array of field types to exclude from adding user role settings
      default value:
      $exclude = array('tab' => 'tab', 'clone' => 'clone');

    // remove tab field from exclude
    if (isset($exclude['tab'])) {

    // add message field to exclude
    $exclude['message'] = 'message';

    return $exclude;


Ekran Görüntüleri

  • Field setting on example field


Install like any other plugin


Nothing yet


9 Şubat 2018
Some plugins just add functionality that should come as standard. This is one of them. Great plugin. Lists check boxes for all the roles in that can access the field, if you are not in one of those roles, the field isn't displayed when adding/editing.
29 Mart 2017
Really really useful for flexible content fields with some input that you want to hide from the end-users. Gives an even cleaner look to the admin for the end-user, and allows developers to utilize more complex setups.
7 incelemeyi oku

Katkıda Bulunanlar ve Geliştiriciler

“ACF User Role Field Setting” açık kaynaklı yazılımdır. Aşağıdaki kişiler bu eklentiye katkıda bulunmuşlardır.

Katkıda bulunanlar

Değişiklik Kaydı


  • Fixed but caused by last change


  • Validate exlcuded field types from filter is an array to prevent errors do to user filter rerurning invalid value.


  • Removed support for repeater sub fields
  • Various bug fixes


  • Changed super admin test permission from “update_core” to “manage_network”


  • Corrected issue with getting property of non object
  • Corrected issues with fields that have array values
  • Re-enabled repeaters


  • removed support for ACF < Version 5.5.0
  • removed user role setting from repeater, group and flexibe content fields (these can be re-enabled using available filter, however doing so may not be safe)
  • corrected issue with repeater sub field reordering
  • no longer filtering $_POST to corect repeater reordering issue


  • added composer support
  • removed donation nag


  • resolving version # issue with WP SVN


  • corrected issue w/deleting repeater rows when sub fields is removed
  • Correct issue w/ACF 5.7.0


  • minor code reorganiztion in prepare_field filter
  • other code cleanup
  • reverted to acf/save_post for $_POST filtering (corrected in ACF)
  • corrected an issue with repeater sub fields when reordered


  • corrected issue – field values not saved when fields set for specifice user roles


  • corrected warning call_user_func_array() expects parameter 1 to be a valid callback


  • changed plugins_loaded funtion to run on after_setup_theme to ensure that if ACF is loaded as part
    or the theme that it is loaded before running
  • changed when $_POST filtering runs to deal with changes in ACF >= 5.6;


  • corrected bug w/ACF version >= 5.6.0


  • correct call to undefined function acf_get_setting()


  • corrects issue with setting not appearing during js field initialization cause by 2.1.5 update


  • altered field setting initialization to deal with non-standard ACF add on field types that do not initialize their fields when they are supposed on the correct ACF hooks


  • removed github updater support


  • initial release as a WordPress Plugin