WP_CLI\Utils
wp_redirect_handler()
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wp_redirect_handler( $url );
- $url (обязательный)
- -
Код wp_redirect_handler() wp redirect handler WP-CLI 2.8.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; }