Merge pull request #10631 from mattallan/matt/webhook-async-filter-param

Add $arg param to the `woocommerce_deliver_webhook_async` filter
This commit is contained in:
Mike Jolley 2016-04-01 10:54:37 +01:00
commit b2dafc3b33
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class WC_Webhook {
// webhooks are processed in the background by default
// so as to avoid delays or failures in delivery from affecting the
// user who triggered it
if ( apply_filters( 'woocommerce_webhook_deliver_async', true, $this ) ) {
if ( apply_filters( 'woocommerce_webhook_deliver_async', true, $this, $arg ) ) {
// deliver in background
wp_schedule_single_event( time(), 'woocommerce_deliver_webhook_async', array( $this->id, $arg ) );