acf_current_user_can_admin() ACF 5.1.5
This function will return true if the current user can administrate the ACF field groups
Хуков нет.
Возвращает
$post_id. (int)
Использование
acf_current_user_can_admin();
Список изменений
С версии 5.1.5 | Введена. |
Код acf_current_user_can_admin() acf current user can admin ACF 5.9.1
function acf_current_user_can_admin() {
if( acf_get_setting('show_admin') && current_user_can(acf_get_setting('capability')) ) {
return true;
}
// return
return false;
}