wip creating emails

This commit is contained in:
asus
2024-04-02 17:01:25 +02:00
parent 1f5fff26d6
commit 47360119e8
4 changed files with 62 additions and 16 deletions

View File

@@ -28,12 +28,6 @@ include_once( plugin_dir_path(__FILE__) . '/plgntls_class.php');
include_once(Plgntls::root_path() . 'php/utils/globals.php');
include_once(Plgntls::root_path() . 'php/utils/console_log.php');
include_once(Plgntls::root_path() . 'php/admin_menu/admin_menu.php');
include_once(Plgntls::root_path() . 'php/admin_menu/admin_menu_toggle.php');
include_once(Plgntls::root_path() . 'php/admin_menu/menu_content.php');
include_once(Plgntls::root_path() . 'php/admin_menu/post_paypal.php');
include_once(Plgntls::root_path() . 'php/admin_menu/post_payment_messages.php');
// paypal
include_once(Plgntls::root_path() . 'php/paypal/paypal.php');
// profs
@@ -53,6 +47,7 @@ include_once(Plgntls::root_path() . 'php/display_css.php');
include_once(Plgntls::root_path() . 'php/payments.php');
include_once(Plgntls::root_path() . 'php/random_posts.php');
include_once(Plgntls::root_path() . 'php/scheduled_events.php');
include_once(Plgntls::root_path() . 'php/emails.php');
// admin
include_once(Plgntls::root_path() . 'php/admin_hide_bar.php');
include_once(Plgntls::root_path() . 'php/admin_user_profil.php');
@@ -154,6 +149,22 @@ vous allez être redirigés vers votre espace',
vous allez être redirigés vers votre espace',
],
];
const OPTION_EMAILS = [
'_name'=>'cipf_emails_option',
'_callback'=>'update_emails_settings_option_CIPF',
'_default'=>[
[
'action'=>'success_payment',
'notification_send'=>true,
'notification_to'=>'test',
'notification_subject'=>"paiement réussi",
'notification_message'=>"par ici la monnaie",
'confirmation_send'=>true,
'confirmation_subject'=>"paiement réussi",
'confirmation_mesage'=>"donne l'argent",
],
],
];
// ADMIN MENU