/** * Set the value of a WooTax option * * @since 4.2 * @param (mixed) $key the key of the option to be updated * @param (mixed) $value the new value of the option */ public static function set_option($key, $value) { if (count(self::$settings) == 0) { self::$settings = get_option(self::$settings_key); } self::$settings[$key] = $value; update_option(self::$settings_key, self::$settings); }