acf_include()ACF 5.0.0

Includes a file within the ACF plugin.

No Hooks.

Returns

null. Nothing (null).

Usage

acf_include( $filename );
$filename(string)
The specified file.
Default: ''

Changelog

Since 5.0.0 Introduced.

acf_include() code ACF 6.8.8

function acf_include( $filename = '' ) {
	$file_path = acf_get_path( $filename );
	if ( file_exists( $file_path ) ) {
		include_once $file_path;
	}
}