프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 ( ) : |
||
리턴 |