79561596

Date: 2025-04-08 08:59:48
Score: 1
Natty:
Report link

There are some examples how to hide, or edit capabilities for the ACF edit screen:
https://www.advancedcustomfields.com/resources/how-to-hide-acf-menu-from-clients/

For example - hiding the ACF tab in the backend:

add_filter('acf/settings/show_admin', '__return_false');

-Or- restrict user to edit based on capabilities:

function custom_acf_show_admin( $show ) {
    return current_user_can('manage_options'); // Change this to some capabilities that nobody has
}
add_filter('acf/settings/show_admin', 'custom_acf_show_admin');

More information about WordPress capabilities can you find here:
https://wordpress.org/documentation/article/roles-and-capabilities/
(You can also code some extra capabilities)

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rick v O.