acf_get_local_internal_posts()ACF 6.1

Returns local ACF posts with the provided post type.

No Hooks.

Returns

Array|Mixed.

Usage

acf_get_local_internal_posts( $post_type );
$post_type(string)
The post type to check for.
Default: 'acf-field-group'

Changelog

Since 6.1 Introduced.

acf_get_local_internal_posts() code ACF 6.8.8

function acf_get_local_internal_posts( $post_type = 'acf-field-group' ) {
	return acf_get_local_store( '', $post_type )->get();
}