Property | Type | Description | |
---|---|---|---|
$instance | An instance of the ResponseValidator class. |
Method | Description | |
---|---|---|
check_connection_status ( ) : integer | A function to check the connection status to Discourse. | |
get_instance ( ) : |
Returns a single instance of the ResponseValidator class. | |
validate ( array $response ) : integer | Validates the response from wp_remote_get or wp_remote_post. |
Method | Description | |
---|---|---|
__construct ( ) | A private constructor, only called through get_instance(). |
public check_connection_status ( ) : integer | ||
return | integer |
public static get_instance ( ) : |
||
return |