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:
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.
-
WCFM Membership10,000+ installs
do_action( 'wpml_restore_language_from_email' )core/class-wcfmvm-ajax.php:502 -
WCFM10,000+ installs
do_action( 'wpml_restore_language_from_email' )controllers/customers/wcfm-controller-customers-manage.php:220 -
UsersWP10,000+ installs
do_action( 'wpml_restore_language_from_email' )includes/class-emails.php:592 -
WCFM Marketplace10,000+ installs
do_action( 'wpml_restore_language_from_email' )includes/store-emails/class-wcfmmp-email-store-new-order.php:134 -
Sensei LMS9,000+ installs
do_action( 'wpml_restore_language_from_email' )includes/wpml/class-email.php:70 -
Waitlist Woocommerce ( Back in stock notifier )4,000+ installs
do_action( 'wpml_restore_language_from_email' )includes/emails/class-xoo-wl-email.php:210 -
MyRewards2,000+ installs
do_action( 'wpml_restore_language_from_email' )assets/lws-adminpanel/include/internal/mailer.php:136 -
Order Approval for Woocommerce1,000+ installs
do_action( 'wpml_restore_language_from_email' )includes/class-wcfm-order-approval-vendor-order.php:139 -
MarketKing700+ installs
do_action( 'wpml_restore_language_from_email' )public/emails/class-marketking-new-announcement-email.php:56 -
Order Splitter for WooCommerce300+ installs
do_action( 'wpml_restore_language_from_email' )inc/functions-inner.php:812 -
ELEX WooCommerce Abandoned Cart Recovery with Dynamic Coupons100+ installs
do_action( 'wpml_restore_language_from_email' )includes/class_elex_email_cron_action.php:102 -
Ultimate Classified Listings30+ installs
do_action( 'wpml_restore_language_from_email' )classes/class-email.php:72 -
Enwikuna License Manager for WooCommerce20+ installs
do_action( 'wpml_restore_language_from_email' )includes/woocommerce/emails/class-elm-wc-license-expired-email.php:101 -
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.