此 API 中列出的所有钩子均适用于 WooCommerce 的 WPML 多语言和多货币 (WCML) 版本 >= 3.5
没有与您的搜索匹配的项目。请清除搜索框或选择其他筛选条件。
多货币功能
wcml_custom_prices_fields_labelsfilter – 向产品添加自定义价格字段标签wcml_is_cache_enabled_for_switching_currencyfilter – 将货币代码添加到 URLwcml_geolocation_get_user_countryfilter – 允许覆盖 WCML 地理定位国家/地区。wcml_user_store_strategyfilter – 允许覆盖存储策略。默认存储为 wc-session,目前唯一的替代方案是 cookie。wcml_rounded_pricefilter – 筛选应用舍入规则后的第二货币价格wcml_currencies_without_centsfilter – 过滤不含分的货币数组wcml_product_custom_pricesfilter – 筛选为产品设置的自定义价格wcml_custom_prices_stringsfilter – 修改在手动设置其他货币价格的部分中使用的字符串wcml_switch_currencyaction – 在通过 AJAX 请求切换前端客户货币后运行操作。wcml_custom_prices_fieldsfilter – 向产品添加额外的自定义价格字段wcml_multi_currency_ajax_actionsfilter – 添加或移除需要我们的多货币过滤器的 AJAX 操作wcml_load_multi_currency_in_ajaxfilter – 定义是否加载 AJAX 操作的多货币过滤器wcml_update_custom_prices_valuesfilter – 在保存之前过滤第二种货币的自定义价格wcml_client_currencyfilter – 过滤用户在前端设置的货币wcml_exchange_ratesfilter – 过滤 WooCommerce Multilingual 使用的汇率wcml_formatted_pricefilter – 将默认货币价格转换为所选货币,并使用正确的格式。wcml_price_currencyfilter – 获取前端的当前货币wcml_set_client_currencyaction – 在为前端设置客户货币后运行操作。wcml_after_custom_prices_blockaction – 在 WooCommerce 原生产品编辑器上生成自定义价格区块后执行操作。wcml_before_multi_currency_uiaction – 在生成 WPML -> WooCommerce Multilingual 屏幕中的多货币选项卡之前运行操作。wcml_after_save_custom_pricesaction – 在 WooCommerce 原生产品编辑器中保存自定义价格后运行操作。wcml_raw_price_amountfilter – 将默认货币的原始价格转换为所选货币wcml_currency_switcheraction – 在生成货币切换器小工具时运行操作。wcml_product_price_by_currencyfilter – 获取所选货币的产品价格。
插入内容
wcml_after_duplicate_productaction – 在复制产品后运行操作。wcml_product_content_fieldsfilter – 在 WCML 翻译编辑器中添加或移除自定义字段wcml_product_content_label– 在 WCML 翻译编辑器中修改自定义字段名称
杂项
wcml_new_order_admin_email_languagefilter – 设置管理后台电子邮件语言translate_shipping_methods_in_packagefilter – 可用于配送方式翻译wcml_gui_additional_box_htmlaction – 在 WCML 翻译编辑器中添加要翻译的额外字段。wcml_current_gateway_languagefilter – 筛选网关字符串(标题、说明、指示)的语言wcml_variation_term_taxonomy_idsfilter – 筛选术语所属的变体分类法 IDwcml_is_attributes_pagefilter – 添加过滤器以检查当前产品页面是否为属性页面wcml_is_variable_productfilter – 添加过滤器以检查产品是否为可变产品wcml_gui_additional_box_datafilter – 为 WCML 翻译编辑器自定义部分中的字段添加翻译数据wcml_after_load_lock_fields_jsaction – 在已翻译的产品编辑器页面上加载用于锁定字段的 JavaScript 代码后运行操作wcml_wc_installed_pagesfilter – 添加或删除 WooCommerce Multilingual 中使用的 WooCommerce 页面选项名称wcml_not_display_single_fields_to_translatefilter – 添加或移除不在 WCML 翻译编辑器中显示的自定义字段wcml_localize_woocommerce_on_ajaxaction – 在 WPML AJAX 请求期间运行操作。
更新内容
wcml_after_duplicate_product_post_metaaction – 在为复制的产品设置文章元字段后执行操作。wcml_update_extra_fieldsaction – 在已翻译的产品字段更新后执行操作。wcml_js_lock_fields_idsfilter – 添加或移除锁定在已翻译产品的 WooCommerce 原生产品编辑器上的自定义字段 IDwcml_js_lock_fields_input_namesfilter – 添加或移除在已翻译产品的 WooCommerce 原生产品编辑器中被锁定的自定义字段输入名称wcml_js_lock_fields_classesfilter – 添加或移除翻译产品的 WooCommerce 原生产品编辑器中锁定的自定义字段类wcml_before_sync_productaction – 在 WCML 将原始产品同步到其翻译产品之前执行操作。wcml_before_sync_product_dataaction – 在 WCML 将数据(图像、分类法、变体等)从原始产品同步到其翻译之前运行操作。
订单
wcml_should_translate_order_itemsfilter – 允许覆盖订单项的翻译。wcml_should_save_adjusted_order_item_in_languagefilter – 允许覆盖调整后的订单项wcml_get_order_items_languagefilter – 允许覆盖要筛选的项目语言。
配送
wcml_should_translate_shipping_method_titlefilter – 允许覆盖已翻译的配送方式标题。