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.
Метод класса: FulfillmentsTracker{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$result = FulfillmentsTracker::track_fulfillment_email_template_customized( $template_name ): void;
- $template_name(строка) (обязательный)
- The email template ID that was customized (e.g., "customer_fulfillment_created").
Список изменений
| С версии 10.7.0 | Введена. |
Код FulfillmentsTracker::track_fulfillment_email_template_customized() FulfillmentsTracker::track fulfillment email template customized WC 11.2.2
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,
)
);
}