このユーザーにはお気に入りのトピックがありません。
お気に入りのフォーラムトピック
作成したフォーラムトピック
| ステータス |
トピック
|
サポーター | 声 | 投稿 | 新着度 |
|---|---|---|---|---|---|
|
Gravity forms
開始者:geoffC-3
カテゴリ: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 | 8ヶ月前 | |
|
Adding a custom language
開始者:geoffC-3 カテゴリ:English Support |
|
0 | 2 | 1年前 | |
|
Credit usage
開始者:geoffC-3 カテゴリ:English Support |
0 | 2 | 1年、 2ヶ月前 |