wpsc_catch_http_status_code()
Хуков нет.
Возвращает
null
. Ничего.
Использование
wpsc_catch_http_status_code( $status );
- $status (обязательный)
- -
Код wpsc_catch_http_status_code() wpsc catch http status code WPSCache 1.7.9
function wpsc_catch_http_status_code( $status ) { global $wp_super_cache_query; if ( in_array( intval( $status ), array( 301, 302, 303, 307 ) ) ) { $wp_super_cache_query[ 'is_redirect' ] = 1; } elseif ( $status == 304 ) { $wp_super_cache_query[ 'is_304' ] = 1; } elseif ( $status == 404 ) { $wp_super_cache_query[ 'is_404' ] = 1; } return $status; }