wpsc_catch_http_status_code()
No Hooks.
Returns
null
. Nothing (null).
Usage
wpsc_catch_http_status_code( $status );
- $status(required)
- .
wpsc_catch_http_status_code() wpsc catch http status code code WPSCache 3.0.0
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; }