more improves in optin gestion in class, automatic handling for basic cases

This commit is contained in:
asus
2024-03-31 17:34:10 +02:00
parent ca13c5dccb
commit 7ad01a51ba
7 changed files with 1531 additions and 58 deletions

View File

@@ -16,9 +16,18 @@ if (!defined('ABSPATH')) {
*
*/
class Xtxpatch {
const SLUG_TOOGLE_ADMIN_MENU = ['_name'=>'toogle_admin_menu_url_xtxpatch', 'toggle'=>'toggle', 'show'=>'show', 'hide'=>'hide'];
const OPTION_TOGGLE_MENU = ['_name'=>'toggle_admin_menu_option_xtxpatch', 'show'=>'show', 'hide'=>'hide'];
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 lidentifiant : $$user_login$$
La FIPF',
'is_email_prof'=>true,
'is_email_partner'=>true,
],
];
}
?>