Свойство | Type | Description | |
---|---|---|---|
$instance | An instance of the ResponseValidator class. |
Méthode | 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. |
Méthode | Description | |
---|---|---|
__construct ( ) | A private constructor, only called through get_instance(). |
public check_connection_status ( ) : integer | ||
Résultat | integer |
public static get_instance ( ) : |
||
Résultat |