[2.5] Allow send array as webhooks callbacks, closes #10424
This commit is contained in:
parent
19019f75ca
commit
256be9b028
|
@ -114,7 +114,7 @@ class WC_Webhook {
|
||||||
if ( apply_filters( 'woocommerce_webhook_deliver_async', true, $this ) ) {
|
if ( apply_filters( 'woocommerce_webhook_deliver_async', true, $this ) ) {
|
||||||
|
|
||||||
// deliver in background
|
// 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 {
|
} else {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue