wp_redirect_status хук-фильтр . WP 2.3.0
Filters the redirect HTTP response status code to use.
Использование
add_filter( 'wp_redirect_status', 'filter_function_name_2380', 10, 2 ); function filter_function_name_2380( $status, $location ){ // filter... return $status; }
- $status(число)
- The HTTP response status code to use.
- $location(строка)
- The path or URL to redirect to.
Список изменений
С версии 2.3.0 | Введена. |
Где вызывается хук
wp-includes/pluggable.php 1267
$status = apply_filters( 'wp_redirect_status', $status, $location );