acf_get_path()ACF 5.0.0

acf_get_path

Returns the plugin path to a specified file.

Хуков нет.

Возвращает

Строку.

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

acf_get_path( $filename );
$filename(строка)
The specified file.
По умолчанию: ''

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

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

Код acf_get_path() ACF 6.0.4

function acf_get_path( $filename = '' ) {
	return ACF_PATH . ltrim( $filename, '/' );
}