public get_item_permissions_check ( WP_REST_Request $request ) : WP_Error | boolean | ||
$request | WP_REST_Request | Full data about the request. |
return | WP_Error | boolean |
public function get_item_permissions_check($request)
{
return new WP_Error('invalid-method', sprintf(__("Method '%s' not implemented. Must be over-ridden in subclass.", 'woocommerce'), __METHOD__), array('status' => 405));
}