Automattic\WooCommerce\Admin\Features\Fulfillments
FulfillmentsTracker::track_fulfillment_email_template_customized
Track when a merchant saves changes to a fulfillment email template in settings.
Tracked from: FulfillmentsManager (hooked to woocommerce_update_options_email_{id}). Measures: Whether merchants customize fulfillment email templates.
Method of the class: FulfillmentsTracker{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = FulfillmentsTracker::track_fulfillment_email_template_customized( $template_name ): void;
- $template_name(string) (required)
- The email template ID that was customized (e.g., "customer_fulfillment_created").
Changelog
| Since 10.7.0 | Introduced. |
FulfillmentsTracker::track_fulfillment_email_template_customized() FulfillmentsTracker::track fulfillment email template customized code WC 10.7.0
public static function track_fulfillment_email_template_customized( string $template_name ): void {
WC_Tracks::record_event(
'fulfillment_email_template_customized',
array(
'template_name' => $template_name,
)
);
}