Skip to content

Commit 0280bde

Browse files
committed
Update typo in docs
1 parent de1f30f commit 0280bde

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Coupon/CouponHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ public function has_notified_creation( int $coupon_id ): bool {
378378
try {
379379
$coupon = $this->get_wc_coupon( $coupon_id );
380380
} catch ( InvalidValue $e ) {
381-
return true; // Sent true for forcing delete notification as the product doesn't exist anymore.
381+
return true; // Sent true for forcing delete notification as the coupon doesn't exist anymore.
382382
}
383383

384384
$valid_has_notified_creation_statuses = [

src/Coupon/SyncerHooks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ protected function handle_update_coupon( WC_Coupon $coupon ) {
186186
return;
187187
}
188188

189-
// Schedule an update job if product sync is enabled.
189+
// Schedule an update job if coupon sync is enabled.
190190
if ( $this->coupon_helper->is_sync_ready( $coupon ) ) {
191191
$this->coupon_helper->mark_as_pending( $coupon );
192192
$this->update_coupon_job->schedule(
@@ -300,7 +300,7 @@ protected function maybe_send_delete_notification( int $coupon_id ): void {
300300
$coupon = $this->wc->maybe_get_coupon( $coupon_id );
301301

302302
if ( is_null( $coupon ) ) {
303-
// In case product is not anymore in DB we send the notification directly.
303+
// In case coupon is not anymore in DB we send the notification directly.
304304
$this->notifications_service->notify( NotificationsService::TOPIC_COUPON_DELETED, $coupon_id );
305305
return;
306306
}

0 commit comments

Comments
 (0)