Skip to content

Latest commit

 

History

History
64 lines (28 loc) · 2.09 KB

File metadata and controls

64 lines (28 loc) · 2.09 KB

WP_CLI\Utils\parse_ssh_url()

Parse a SSH url for its host, port, and path.


Usage

WP_CLI\Utils\parse_ssh_url( $url, $component = -1 )
$url (string)
$component (int)
@return (mixed)

Notes

Similar to parse_url(), but adds support for defined SSH aliases.

host OR host/path/to/wordpress OR host:port/path/to/wordpress

Internal API documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.


Related