mirror of
https://ghproxy.net/https://github.com/wp-cli/handbook.git
synced 2026-07-26 12:37:22 +08:00
1.6 KiB
1.6 KiB
WP_CLI\Utils\is_stream()
Check if a path is a PHP stream URL.
Usage
WP_CLI\Utils\is_stream( $path )
$path (string) The resource path or URL.
@return (bool) if the path is a PHP stream URL, false otherwise.
@return (bool) if the path is a PHP stream URL, false otherwise.
Internal API documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.
Related
- WP_CLI\Utils\get_home_dir() - Get the home directory.
- WP_CLI\Utils\trailingslashit() - Appends a trailing slash.
- WP_CLI\Utils\normalize_path() - Normalize a filesystem path.
- WP_CLI\Utils\get_temp_dir() - Get the system's temp directory. Warns user if it isn't writable.
- WP_CLI\Utils\get_php_binary() - Get the path to the PHP binary used when executing WP-CLI.
- WP_CLI::get_php_binary() - Get the path to the PHP binary used when executing WP-CLI.