Cleanup meta after ping

This commit is contained in:
Mike Jolley 2017-06-16 13:56:50 +01:00
parent b4ea8bb94f
commit 1e7b83b813
1 changed files with 2 additions and 0 deletions

View File

@ -698,6 +698,8 @@ class WC_Webhook {
return new WP_Error( 'error', sprintf( __( 'Error: Delivery URL returned response code: %s', 'woocommerce' ), absint( $response_code ) ) );
}
delete_post_meta( $this->id, '_webhook_pending_delivery' );
return true;
}