WordPress action hook

wpml_st_force_translate_admin_options

Fired by 4 WordPress plugins, running on 171K+ sites between them.

“Force string translation for Germanized email related strings”

How to use wpml_st_force_translate_admin_options

It's an action: your callback runs at that point and receives 1 argument. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'wpml_st_force_translate_admin_options', function( $values ) {
	// Your code runs here.
}, 10, 1 );

Argument names come from BrikPanel: WooCommerce Dashboard & Analytics, Abandoned Cart Recovery, Order Export, Inventory Management & Bulk Editor's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

4 plugins that fire wpml_st_force_translate_admin_options

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WPML Multilingual & Multicurrency for WooCommerce icon WPML Multilingual & Multicurrency for WooCommerce100,000+ installs do_action( 'wpml_st_force_translate_admin_options', [ 'woocommerce_checkout_privacy_policy_text', 'woocommerce_email_footer_text', 'woocommerce_email_from_address', 'woocommerce_email_from_name', 'woocommerce_price_decimal_sep', 'woocommerce_price_thousand_sep', 'woocommerce_registration_privacy_policy_text', ] ) inc/class-wcml-emails.php:364
  2. Germanized for WooCommerce icon Germanized for WooCommerce70,000+ installs do_action( 'wpml_st_force_translate_admin_options', apply_filters( 'woocommerce_gzd_wpml_admin_relevant_string_options', array( 'woocommerce_gzd_email_order_confirmation_text', 'woocommerce_gzd_email_title_text', 'woocommerce_gzd_complaints_procedure_text', 'woocommerce_gzd_delivery_time_text', 'woocommerce_gzd_unit_price_text', 'woocommerce_gzd_product_units_text', 'woocommerce_gzd_differential_taxation_notice_text', 'woocommerce_gzd_small_ente... ) includes/compatibility/class-wc-gzd-compatibility-wpml.php:321
  3. BrikPanel: WooCommerce Dashboard & Analytics, Abandoned Cart Recovery, Order Export, Inventory Management & Bulk Editor icon BrikPanel: WooCommerce Dashboard & Analytics, Abandoned Cart Recovery, Order Export, Inventory Management & Bulk Editor1,000+ installs do_action( 'wpml_st_force_translate_admin_options', array_values( $options ) ) includes/brikpanel-wpml.php:352
  4. Enwikuna License Manager for WooCommerce icon Enwikuna License Manager for WooCommerce20+ installs do_action( 'wpml_st_force_translate_admin_options', array( 'woocommerce_email_footer_text' ) ) includes/woocommerce/emails/class-elm-wc-license-expired-email.php:99

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.