acf_path_has_stream_wrapper()ACF 6.8.7

Checks if a path uses a PHP stream wrapper, such as phar:// or php://.

Хуков нет.

Возвращает

boolean. True if the path begins with a stream wrapper.

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

acf_path_has_stream_wrapper( $path );
$path(строка) (обязательный)
The path to check.

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

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

Код acf_path_has_stream_wrapper() ACF 6.8.8

function acf_path_has_stream_wrapper( $path ) {
	return (bool) preg_match( '#^[a-zA-Z][a-zA-Z0-9.+-]*://#', (string) $path );
}