acf_current_user_can_admin()
acf_current_user_can_admin
This function will return true if the current user can administrate the ACF field groups
No Hooks.
Returns
$post_id. (int)
Usage
acf_current_user_can_admin();
Changelog
| Since 5.1.5 | Introduced. |
acf_current_user_can_admin() acf current user can admin code ACF 6.8.8
function acf_current_user_can_admin() {
if ( acf_get_setting( 'show_admin' ) && current_user_can( acf_get_setting( 'capability' ) ) ) {
return true;
}
// return
return false;
}