is_server_error

The WordPress Core is server error function.

Description

is_server_error( $sc ); 

Parameters (1)

0. $sc
The sc.

Usage

  1. if ( !function_exists( 'is_server_error' ) ) { 
  2. require_once ABSPATH . WPINC . '/rss.php'; 
  3.  
  4. // The sc. 
  5. $sc = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = is_server_error($sc); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/rss.php  
  1. function is_server_error ($sc) { 
  2. return $sc >= 500 && $sc < 600;