37 lines
639 B
PHP
37 lines
639 B
PHP
<?php
|
||
namespace XTXPATCH;
|
||
|
||
/*
|
||
* it means someone outside wp is accessing the file, in this case kill it.
|
||
*/
|
||
if (!defined('ABSPATH')) {
|
||
die('You can not access this file!');
|
||
}
|
||
|
||
|
||
|
||
|
||
|
||
/*
|
||
*
|
||
*/
|
||
class Xtxpatch {
|
||
const ROLE_PROF = 'professeur__professeure';
|
||
const ROLE_PARTNER = 'partenaire';
|
||
|
||
const OPTION_REGISTER_EMAIL = [
|
||
'_name'=>'define_email_at_register_xtxpatch',
|
||
'_callback'=>__NAMESPACE__.'\define_register_email',
|
||
'_default'=>[
|
||
'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_partner'=>true,
|
||
],
|
||
];
|
||
}
|
||
|
||
?>
|