Skip Navigation
availability:

WPML Version: 3.2.2

description:

WPML allows you to translate entries from the wp_options table. We call these Admin Texts.

To avoid confusion, when the user is editing these settings in the dashboard, these options aren’t translated in admin.

But we sometimes require translating them, even in admin. For example, when sending an email from the dashboard.

type:
action
category:
Updating Content
parameters:

The only required argument is an array of strings where each string is the name of an admin text.

hook example usage:

if ( $sending ) {
   do_action( 'wpml_st_force_translate_admin_options', array( 'email_header', 'email_footer' ) );
}