Merge pull request #14639 from atimmer/stories/webhook-public-build_payload

Change build_payload from private to public
This commit is contained in:
Mike Jolley 2017-05-18 13:15:53 +01:00 committed by GitHub
commit cac5b33553
1 changed files with 1 additions and 1 deletions

View File

@ -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