WC_REST_Ping_V4_Controller::get_ping_permissions_check
Check whether a given request has permission to read ping.
Method of the class: WC_REST_Ping_V4_Controller{}
No Hooks.
Returns
WP_Error|true|false.
Usage
$WC_REST_Ping_V4_Controller = new WC_REST_Ping_V4_Controller(); $WC_REST_Ping_V4_Controller->get_ping_permissions_check( $request );
- $request(WP_REST_Request) (required)
- Full details about the request.
WC_REST_Ping_V4_Controller::get_ping_permissions_check() WC REST Ping V4 Controller::get ping permissions check code WC 10.3.6
public function get_ping_permissions_check( $request ) {
// Allow ping to be accessible without authentication for basic connectivity testing.
return true;
}