Свойство | Тип | Описание | |
---|---|---|---|
$instance | An instance of the ResponseValidator class. |
Метод | Описание | |
---|---|---|
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. |
Метод | Описание | |
---|---|---|
__construct ( ) | A private constructor, only called through get_instance(). |
public check_connection_status ( ) : integer | ||
Результат | integer |
public static get_instance ( ) : |
||
Результат |