WC_Settings_Tracking::send_settings_change_event()
Send a Tracks event for WooCommerce options that changed values.
Description Description
Source Source
File: includes/tracks/events/class-wc-settings-tracking.php
public function send_settings_change_event() {
global $current_tab;
if ( empty( $this->updated_options ) ) {
return;
}
$properties = array(
'settings' => implode( ',', $this->updated_options ),
);
if ( isset( $current_tab ) ) {
$properties['tab'] = $current_tab;
}
WC_Tracks::record_event( 'settings_change', $properties );
}