acf_path_has_stream_wrapper()
Checks if a path uses a PHP stream wrapper, such as phar:// or php://.
No Hooks.
Returns
true|false. True if the path begins with a stream wrapper.
Usage
acf_path_has_stream_wrapper( $path );
- $path(string) (required)
- The path to check.
Changelog
| Since 6.8.7 | Introduced. |
acf_path_has_stream_wrapper() acf path has stream wrapper code ACF 6.8.8
function acf_path_has_stream_wrapper( $path ) {
return (bool) preg_match( '#^[a-zA-Z][a-zA-Z0-9.+-]*://#', (string) $path );
}