fixed default email options
This commit is contained in:
@@ -80,6 +80,7 @@ function get_email_registration_option_CIPF() {
|
|||||||
PLGNTLS_class::debug_infos();
|
PLGNTLS_class::debug_infos();
|
||||||
$option_email = PLGNTLS_class::OPTION_EMAIL;
|
$option_email = PLGNTLS_class::OPTION_EMAIL;
|
||||||
|
|
||||||
|
delete_option($option_email['_name']);
|
||||||
$email_option_serialized = get_option($option_email['_name']);
|
$email_option_serialized = get_option($option_email['_name']);
|
||||||
if (false === $email_option_serialized) {
|
if (false === $email_option_serialized) {
|
||||||
add_option($option_email['_name'], serialize($option_email['_default']), '', 'no');
|
add_option($option_email['_name'], serialize($option_email['_default']), '', 'no');
|
||||||
|
|||||||
@@ -130,9 +130,13 @@ class PLGNTLS_class {
|
|||||||
const OPTION_EMAIL = [
|
const OPTION_EMAIL = [
|
||||||
'_name'=>'cipf_email_registration',
|
'_name'=>'cipf_email_registration',
|
||||||
'_default'=>[
|
'_default'=>[
|
||||||
'email'=>'Bonjour,\r\n\r\nVous venez de créer un compte sur le site carteprof.org avec l’identifiant : $$user_login$$\r\n\r\nLa FIPF'],
|
'email'=>
|
||||||
|
'Bonjour,
|
||||||
|
Vous venez de créer un compte sur le site carteprof.org avec l’identifiant : $$user_login$$
|
||||||
|
La FIPF',
|
||||||
'is_email_prof'=>true,
|
'is_email_prof'=>true,
|
||||||
'is_email_partner'=>true,
|
'is_email_partner'=>true,
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user