acf_current_user_can_read_post() │ ACF 6.8.11

Checks whether the current user can read a post referenced by a relational field.

Хуков нет.

Возвращает

boolean.

Использование

acf_current_user_can_read_post( $post, $field );
$post(int|WP_Post) (обязательный)
The post ID or object.
$field(массив)
The field referencing the post.
По умолчанию: array()

Заметки

Смотрите: acf_user_can_read_post()

Список изменений

С версии 6.8.11 Введена.

Код acf_current_user_can_read_post() ACF 6.8.11

function acf_current_user_can_read_post( $post, $field = array() ) {
	return acf_user_can_read_post( wp_get_current_user(), $post, $field );
}