diff --git a/includes/Listeners/WonderCart.php b/includes/Listeners/WonderCart.php index 2c3693d..7be3efc 100644 --- a/includes/Listeners/WonderCart.php +++ b/includes/Listeners/WonderCart.php @@ -83,7 +83,7 @@ public function create_campaign_modal_open( $args, $event ) { public function campaign_selected( $args, $event ) { $data = array( 'label_key' => 'campaign_slug', - 'campaign_type' => $args['type'], + 'type' => $args['type'], 'campaign_slug' => $args['type'], ); @@ -105,7 +105,7 @@ public function campaign_selected( $args, $event ) { public function campaign_abandoned( $args, $event ) { $data = array( 'label_key' => 'campaign_slug', - 'campaign_type' => $args['type'], + 'type' => $args['type'], 'campaign_slug' => $args['type'] . '-' . $args['id'], ); @@ -154,8 +154,8 @@ public function checkout_campaigns_used() { } if ( count( $campaigns ) > 0 ) { $data = array( - 'label_key' => 'campaign_type', - 'campaign_type' => array_unique( $campaigns ), + 'label_key' => 'type', + 'type' => array_unique( $campaigns ), 'campaign_count' => count( $campaigns ), 'campaign_total' => '$' . $campaign_total, );