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
Хуков нет.
Возвращает
$post_id
. (int)
Использование
acf_current_user_can_admin();
Список изменений
С версии 5.1.5 | Введена. |
Код acf_current_user_can_admin() acf current user can admin ACF 6.0.4
function acf_current_user_can_admin() { if ( acf_get_setting( 'show_admin' ) && current_user_can( acf_get_setting( 'capability' ) ) ) { return true; } // return return false; }