Class WC_REST_Authentication
Methods summary
public
|
|
protected
boolean
|
|
public
integer|false
|
|
public
WP_Error|null|boolean
|
|
protected
|
|
protected
WP_Error|null.
|
|
public
array
|
|
public
string
|
|
public
array|WP_Error
|
|
public
WP_REST_Response
|
#
send_unauthorized_headers( WP_REST_Response $response )
If the consumer_key and consumer_secret $_GET parameters are NOT provided and the Basic auth headers are either not present or the consumer secret does not match the consumer key provided, then return the correct Basic headers and an error message. |
public
mixed
|
#
check_user_permissions( mixed $result, WP_REST_Server $server, WP_REST_Request $request )
Check for user permissions and register last access. |