WC_Settings_Tracking::add_option_to_list( array $option )

Add a WooCommerce option name to our allowed options list and attach the update_option hook. Rather than inspecting every updated option and pattern matching for “woocommerce”, just build a dynamic list for WooCommerce options that might get updated.


Description Description

See woocommerce_update_option hook.


Parameters Parameters

$option

(Required) WooCommerce option (config) that might get updated.


Top ↑

Source Source

File: includes/tracks/events/class-wc-settings-tracking.php

48
 

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.