Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
wp-content
/
plugins
/
woocommerce
/
includes
/
admin
/
helper
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php if (!defined('ABSPATH')) { exit; } class WC_Helper_Options { private static $option_name = 'woocommerce_helper_data'; public static function update($key, $value) { $options = get_option(self::$option_name, array()); $options[$key] = $value; return update_option(self::$option_name, $options, true); } public static function get($key, $default = false) { $options = get_option(self::$option_name, array()); if (array_key_exists($key, $options)) { return $options[$key]; } return $default; } }