[2.5] Allow send array as webhooks callbacks, closes #10424

This commit is contained in:
Claudio Sanches 2016-02-29 16:23:45 -03:00
parent 19019f75ca
commit 256be9b028
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class WC_Webhook {
if ( apply_filters( 'woocommerce_webhook_deliver_async', true, $this ) ) {
// deliver in background
wp_schedule_single_event( time(), 'woocommerce_deliver_webhook_async', array( $this->id, is_scalar( $arg ) ? $arg : 0 ) );
wp_schedule_single_event( time(), 'woocommerce_deliver_webhook_async', array( $this->id, $arg ) );
} else {