WordPress action hook

wpml_restore_language_from_email

Fired by 14 WordPress plugins, running on 57K+ sites between them.

“Restore language after sending email”

How to use wpml_restore_language_from_email

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

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

Argument names come from WCFM Membership's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

14 plugins that fire wpml_restore_language_from_email

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

  1. WCFM Membership icon WCFM Membership10,000+ installs do_action( 'wpml_restore_language_from_email' ) core/class-wcfmvm-ajax.php:502
  2. WCFM icon WCFM10,000+ installs do_action( 'wpml_restore_language_from_email' ) controllers/customers/wcfm-controller-customers-manage.php:220
  3. UsersWP icon UsersWP10,000+ installs do_action( 'wpml_restore_language_from_email' ) includes/class-emails.php:592
  4. WCFM Marketplace icon WCFM Marketplace10,000+ installs do_action( 'wpml_restore_language_from_email' ) includes/store-emails/class-wcfmmp-email-store-new-order.php:134
  5. Sensei LMS icon Sensei LMS9,000+ installs do_action( 'wpml_restore_language_from_email' ) includes/wpml/class-email.php:70
  6. Waitlist Woocommerce ( Back in stock notifier ) icon Waitlist Woocommerce ( Back in stock notifier )4,000+ installs do_action( 'wpml_restore_language_from_email' ) includes/emails/class-xoo-wl-email.php:210
  7. MyRewards icon MyRewards2,000+ installs do_action( 'wpml_restore_language_from_email' ) assets/lws-adminpanel/include/internal/mailer.php:136
  8. Order Approval for Woocommerce icon Order Approval for Woocommerce1,000+ installs do_action( 'wpml_restore_language_from_email' ) includes/class-wcfm-order-approval-vendor-order.php:139
  9. MarketKing icon MarketKing700+ installs do_action( 'wpml_restore_language_from_email' ) public/emails/class-marketking-new-announcement-email.php:56
  10. Order Splitter for WooCommerce icon Order Splitter for WooCommerce300+ installs do_action( 'wpml_restore_language_from_email' ) inc/functions-inner.php:812
  11. ELEX WooCommerce Abandoned Cart Recovery with Dynamic Coupons icon ELEX WooCommerce Abandoned Cart Recovery with Dynamic Coupons100+ installs do_action( 'wpml_restore_language_from_email' ) includes/class_elex_email_cron_action.php:102
  12. Ultimate Classified Listings icon Ultimate Classified Listings30+ installs do_action( 'wpml_restore_language_from_email' ) classes/class-email.php:72
  13. Enwikuna License Manager for WooCommerce icon Enwikuna License Manager for WooCommerce20+ installs do_action( 'wpml_restore_language_from_email' ) includes/woocommerce/emails/class-elm-wc-license-expired-email.php:101
  14. Circular Arts Network icon Circular Arts NetworkFewer than 10 installs do_action( 'wpml_restore_language_from_email' ) classes/class-email.php:69

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.