ACF_Internal_Post_Type::is_postpublicACF 6.1

Returns true if the given params match an ACF post.

Метод класса: ACF_Internal_Post_Type{}

Хуков нет.

Возвращает

true|false.

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

$ACF_Internal_Post_Type = new ACF_Internal_Post_Type();
$ACF_Internal_Post_Type->is_post( $post );
$post(массив)
The post array to check.
По умолчанию: false

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

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

Код ACF_Internal_Post_Type::is_post() ACF 6.4.2

public function is_post( $post = false ) {
	return (
		is_array( $post )
		&& isset( $post['key'] )
		&& isset( $post['title'] )
	);
}