Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client wants to stop the 'Send me a notification email when there is something new to translate' option from being automatically enabled for new customer accounts on their WPML site.
Solution:
We explained that WPML does not provide a direct setting to change this default behavior. However, the client can programmatically enforce this setting for all new users by adding a specific meta key during the user account creation process. Here is a basic example of how to implement this:

function add_wpml_email_block_meta($user_id) {
    $meta_key = 'wpml_block_new_email_notifications';
    $meta_value = 1;

    // Add or update the user meta
    update_user_meta($user_id, $meta_key, $meta_value);
}
add_action('user_register', 'add_wpml_email_block_meta');

This code snippet adds the wpml_block_new_email_notifications meta key with a value of 1 to the wp_usermeta table, ensuring that the email notification option is unchecked by default for new users. Please note that this solution requires testing and might need adjustments for specific use cases.

If this solution does not apply to your situation, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 5 replies, has 0 voices.

Last updated by Andrey 1 week, 3 days ago.

Assisted by: Andrey.

Author Posts
May 30, 2025 at 1:45 pm #17092472

Paul

Background of the issue:
I am trying to manage the WPML Translator Settings for new customer accounts on my site hidden link. Specifically, I want to change the default setting for new accounts.

Symptoms:
When a new customer creates an account, the 'Send me a notification email when there is something new to translate' option is ticked by default.

Questions:
How do we stop the 'Send me a notification email when there is something new to translate' option from being ticked by default for new accounts?

May 30, 2025 at 9:28 pm #17093458

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for contacting WPML support.

Currently, WPML does not provide an option to change this default profile behavior in its settings unless the user manually disables the option. If it is disabled, the meta key wpml_block_new_email_notifications with a value of 1 is automatically added to the current user’s entry in the wp_usermeta table.

If you’d like to enforce this setting programmatically for all new users, you can add the meta key during user account creation. Here’s a basic example to get you started:

function add_wpml_email_block_meta($user_id) {
    $meta_key = 'wpml_block_new_email_notifications';
    $meta_value = 1;

    // Add or update the user meta
    update_user_meta($user_id, $meta_key, $meta_value);
}
add_action('user_register', 'add_wpml_email_block_meta');

What this does:
• Adds the wpml_block_new_email_notifications meta key with a value of 1 to the wp_usermeta table.
• Uses update_user_meta() to ensure the value is set even if the key already exists.

Please note that this is only a starting point and hasn’t been tested. Custom development like this falls outside the scope of WPML support, so we recommend testing and adjusting the code as needed for your specific use case. I hope it helps.

May 31, 2025 at 5:57 am #17093718

Paul

Thanks for the update. Can you explain what that option actually does? i have 9,000 shop customers, and thy all have that option ticked. Does that mean they will receive an email when something needs translation? or only if they are listed as a translator?

May 31, 2025 at 7:16 am #17093746

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Yes, you are correct. They will receive an email notification if there is something to translate. This means that if you send content from WPML → Translation Management and choose the first available translator, they will be notified.

You can also disable notifications by going to WPML → Settings → Translation Notifications.

May 31, 2025 at 7:31 am #17093767

Paul

Even if they are not in the translator list, if that tick box is ticked, they will receive an email when a translation is needed? Sorry but this doesn't make sense?
I don't want my shop customers being asked to translate anything????
The screen image shows the translators. But even customer that places an order and created an account is getting that check box option ticked and i can't stop it?

Screenshot 2025-05-31 at 08.29.51.png
May 31, 2025 at 11:48 am #17094100

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for your feedback.

They will not receive notification emails for new translation jobs because their role is set to Customer.

If you want to ensure that the email notification option is unchecked for such users, you’ll need to handle it programmatically, as previously described.