Support

Account

Home Forums Backend Issues (wp-admin) adding-custom-settings-fields Reply To: adding-custom-settings-fields

  • I’m sure you weren’t, that was just me saying that if you’re having a problem with one of my plugins that I’d really like to hear about it. Eventually, if ACF5 ever makes it to the WP repo I will be putting a lot of my plugins there.

    In the mean time, if you want to accomplish this type of admin only field for only a specific field, that plugin show how it needs to be done in the current version and there is code now for when 5.5 is released. In the current version you need to use a hook named ‘acf/get_fields’. This hook is not documented. this hook passes an array of fields and you need to loop though the fields and remove the ones you don’t want to display.

    The way that the acf/prepare_field filter is supposed to work makes the process a whole lot simpler.