Emails
2 months ago
Integrations
2 months ago
MultichannelMarketing
2 years ago
TransactionalEmails
10 months ago
WooCommerceBookings
1 month ago
WooCommerceSubscriptions
2 months ago
CouponPreProcessor.php
2 months ago
Emails.php
8 months ago
Helper.php
1 month ago
MailPoetTask.php
2 years ago
NonPersistablePreviewData.php
1 month ago
OrderAttributionFields.php
1 month ago
OrderAttributionRevenueReader.php
2 weeks ago
OrderAttributionWriter.php
1 month ago
RandomCouponCodeGenerator.php
2 months ago
Settings.php
1 year ago
SubscriberEngagement.php
3 years ago
Subscription.php
2 months ago
Tracker.php
2 years ago
TransactionalEmailHooks.php
1 year ago
TransactionalEmails.php
1 year ago
WooSystemInfo.php
1 month ago
WooSystemInfoController.php
1 year ago
index.php
3 years ago
OrderAttributionFields.php
18 lines
| 1 | <?php declare(strict_types = 1); |
| 2 | |
| 3 | namespace MailPoet\WooCommerce; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | class OrderAttributionFields { |
| 9 | // WooCommerce persists order attribution data under this meta prefix. MailPoet |
| 10 | // reads and writes only the standard source fields (utm_source, source_type, |
| 11 | // session_start_time) through it; it no longer stores its own namespaced fields. |
| 12 | const META_PREFIX = '_wc_order_attribution_'; |
| 13 | |
| 14 | public static function getMetaKey(string $fieldName): string { |
| 15 | return self::META_PREFIX . $fieldName; |
| 16 | } |
| 17 | } |
| 18 |