WP_CLI\Utils

wp_redirect_handler()WP-CLI 1.0

No Hooks.

Return

null. Nothing.

Usage

wp_redirect_handler( $url );
$url (required)
-

Code of wp_redirect_handler() WP-CLI 2.7.0-alpha

function wp_redirect_handler( $url ) {
	WP_CLI::warning( 'Some code is trying to do a URL redirect. Backtrace:' );

	ob_start();
	debug_print_backtrace();
	fwrite( STDERR, ob_get_clean() );

	return $url;
}