diff --git a/includes/class-wc-webhook.php b/includes/class-wc-webhook.php index 0e8245f120f..d9a44fdba6a 100644 --- a/includes/class-wc-webhook.php +++ b/includes/class-wc-webhook.php @@ -335,7 +335,7 @@ class WC_Webhook { * @param mixed $resource_id first hook argument, typically the resource ID * @return mixed payload data */ - private function build_payload( $resource_id ) { + public function build_payload( $resource_id ) { // build the payload with the same user context as the user who created // the webhook -- this avoids permission errors as background processing // runs with no user context