WP_CLI::set_url()
Set the context in which WP-CLI should be run
Method of the class: WP_CLI{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = WP_CLI::set_url( $url );
- $url (required)
- -
WP_CLI::set_url() WP CLI::set url code WP-CLI 2.8.0-alpha
public static function set_url( $url ) { self::debug( 'Set URL: ' . $url, 'bootstrap' ); $url_parts = Utils\parse_url( $url ); self::set_url_params( $url_parts ); }