This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
| Status |
Topic
|
Supporter | Voices | Posts | Freshness |
|---|---|---|---|---|---|
|
Gravity forms
Started by: geoffC-3
in: English Support
Problem: add_filter( 'gform_notification', 'language_based_notification_email', 10, 3 );
function language_based_notification_email( $notification, $form, $entry ) {
if ( $notification['name'] == 'Admin Notification' ) {
$language = apply_filters( 'wpml_current_language', null );
$emails = array(
'en' => 'admin-en@example.com',
'de' => 'admin-de@example.com',
'fr' => 'admin-fr@example.com',
);
if ( isset( $emails[ $language ] ) ) {
$notification['toType'] = 'email';
$notification['to'] = $emails[ $language ];
}
}
return $notification;
}Please note that this solution might be outdated or not applicable to your specific case. 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 this does not resolve your issue, please open a new support ticket at WPML support forum. |
|
1 | 5 | 5 months, 1 week ago | |
|
Adding a custom language
Started by: geoffC-3 in: English Support |
|
0 | 2 | 9 months, 4 weeks ago | |
|
Credit usage
Started by: geoffC-3 in: English Support |
0 | 2 | 1 year ago |