Changeset 3070955
- Timestamp:
- 04/15/2024 03:44:08 PM (2 years ago)
- File:
-
- 1 edited
-
outshifter-export/trunk/index.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
outshifter-export/trunk/index.php
r3067044 r3070955 117 117 self::log('Inicio - remove_api_keys'); 118 118 119 // Parte de la descripción que estamos buscando120 119 $descripcion_buscada = "Reachu export"; 121 120 … … 125 124 126 125 foreach ($api_keys as $api_key) { 127 // Verificar si la descripción contiene la subcadena buscada128 126 if (strpos($api_key->description, $descripcion_buscada) !== false) { 129 127 $wpdb->delete($tabla_api_keys, ['key_id' => $api_key->key_id], ['%d']); … … 1143 1141 1144 1142 public static function fetch_currencies_for_settings() { 1145 $response = self::call('/api/c hannels');1143 $response = self::call('/api/currencies'); 1146 1144 $options = array('' => '--'); 1147 1145 if (is_array($response)) { 1148 1146 foreach ($response as $currency) { 1149 1147 if (isset($currency->enabled) && $currency->enabled == 1) { 1150 $options[$currency-> name] = $currency->name;1148 $options[$currency->currency_code] = $currency->currency_code; 1151 1149 } 1152 1150 } … … 1176 1174 'id' => 'wc_reachu_currency', 1177 1175 'default' => '', 1178 //'options' => self::fetch_currencies_for_settings(), 1179 'options' => array( 1180 '' => '--', 1181 'EUR' => 'EUR', 1182 'USD' => 'USD', 1183 'NOK' => 'NOK', 1184 'DKK' => 'DKK', 1185 'SEK' => 'SEK', 1186 'CHF' => 'CHF', 1187 'GBP' => 'GBP', 1188 ), 1176 'options' => self::fetch_currencies_for_settings(), 1189 1177 'class' => 'reachu-currency-select', 1190 1178 ),
Note: See TracChangeset
for help on using the changeset viewer.