acf_get_external_path()ACF 5.5.8

This function will return the path to a file within an external folder

No Hooks.

Returns

String. File path.

Usage

acf_get_external_path( $file, $path );
$file(string) (required)
Directory path.
$path(string)
Optional file path.
Default: ''

Changelog

Since 5.5.8 Introduced.

acf_get_external_path() code ACF 6.8.8

function acf_get_external_path( $file, $path = '' ) {
	return plugin_dir_path( $file ) . $path;
}