created xtxpatch git repo
This commit is contained in:
1369
php/classes/plgntls_class.php
Normal file
1369
php/classes/plgntls_class.php
Normal file
File diff suppressed because it is too large
Load Diff
36
php/classes/xtxpatch_class.php
Normal file
36
php/classes/xtxpatch_class.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?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,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user