public static function get_basket_extra_fields_array($force_refresh = false) { if ($force_refresh) { $networking = wpml_tm_load_tp_networking(); $project = TranslationProxy::get_current_project(); $extra_fields = $networking->get_extra_fields_remote($project); } else { $extra_fields = TranslationProxy::get_extra_fields_local(); } return TranslationProxy::maybe_convert_extra_fields($extra_fields); }
public static function get_basket_extra_fields_array($force_refresh = false) { if ($force_refresh) { $extra_fields = TranslationProxy::get_extra_fields_remote(); } else { $extra_fields = TranslationProxy::get_extra_fields_local(); } return $extra_fields; }