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 1 week, 3 days ago.
Assisted by: Andrey.