WPML
wpml_restore_language_from_email
Type
action
WPML Version
3.2.0

Description

Restore the language that was active before calling wpml_switch_language_for_email.

These switches nest. Since WPML 5.0, each call closes the last wpml_switch_language_for_email scope that is still open, and not the first one. Call this action once for every switch. A restore with no open switch does nothing.

Example usage

See wpml_switch_language_for_email

wpml_post_language_details, wpml_switch_language_for_email, wpml_switch_language, wpml_element_language_code, wpml_element_language_details

All 6 Retrieving Language Information for Content hooks →