Home › Forums › Backend Issues (wp-admin) › Custom User Role / Screen Options › Reply To: Custom User Role / Screen Options
There is a filter in ACF that you can use to modify the capability required.
you can create a function for this filter, get the current screen and see if it’s for your post type and if it is change the capability to match a capability for your custom user role and post type
add_filter('acf/settings/capability', 'my_change_capability');
function my_change_capability($value) {
// get the current screen
// if your CPT change value to your capability
return $value;
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.