WC_Tracker::get_all_woocommerce_options_values()
Get all options starting with woocommerce_ prefix.
Method of the class: WC_Tracker{}
No Hooks.
Return
Array
.
Usage
$result = WC_Tracker::get_all_woocommerce_options_values();
WC_Tracker::get_all_woocommerce_options_values() WC Tracker::get all woocommerce options values code WC 7.5.1
private static function get_all_woocommerce_options_values() { return array( 'version' => WC()->version, 'currency' => get_woocommerce_currency(), 'base_location' => WC()->countries->get_base_country(), 'base_state' => WC()->countries->get_base_state(), 'base_postcode' => WC()->countries->get_base_postcode(), 'selling_locations' => WC()->countries->get_allowed_countries(), 'api_enabled' => get_option( 'woocommerce_api_enabled' ), 'weight_unit' => get_option( 'woocommerce_weight_unit' ), 'dimension_unit' => get_option( 'woocommerce_dimension_unit' ), 'download_method' => get_option( 'woocommerce_file_download_method' ), 'download_require_login' => get_option( 'woocommerce_downloads_require_login' ), 'calc_taxes' => get_option( 'woocommerce_calc_taxes' ), 'coupons_enabled' => get_option( 'woocommerce_enable_coupons' ), 'guest_checkout' => get_option( 'woocommerce_enable_guest_checkout' ), 'checkout_login_reminder' => get_option( 'woocommerce_enable_checkout_login_reminder' ), 'secure_checkout' => get_option( 'woocommerce_force_ssl_checkout' ), 'enable_signup_and_login_from_checkout' => get_option( 'woocommerce_enable_signup_and_login_from_checkout' ), 'enable_myaccount_registration' => get_option( 'woocommerce_enable_myaccount_registration' ), 'registration_generate_username' => get_option( 'woocommerce_registration_generate_username' ), 'registration_generate_password' => get_option( 'woocommerce_registration_generate_password' ), 'hpos_enabled' => get_option( 'woocommerce_feature_custom_order_tables_enabled' ), 'hpos_sync_enabled' => get_option( 'woocommerce_custom_orders_table_data_sync_enabled' ), 'hpos_cot_authoritative' => get_option( 'woocommerce_custom_orders_table_enabled' ), 'hpos_transactions_enabled' => get_option( 'woocommerce_use_db_transactions_for_custom_orders_table_data_sync' ), 'hpos_transactions_level' => get_option( 'woocommerce_db_transactions_isolation_level_for_custom_orders_table_data_sync' ), ); }