acf_filter_post_types()ACF 6.1

Returns a filtered array of ACF post types based on the given $args.

Хуков нет.

Возвращает

Массив.

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

acf_filter_post_types( $post_types, $args );
$post_types(массив) (обязательный)
An array of ACF posts.
$args(массив)
An array of args to filter by.
По умолчанию: array()

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

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

Код acf_filter_post_types() ACF 6.4.2

function acf_filter_post_types( array $post_types, array $args = array() ) {
	return acf_filter_internal_post_type_posts( $post_types, $args, 'acf-post-type' );
}