updated options to make them not automatically loaded when added

This commit is contained in:
asus
2024-03-25 15:16:19 +01:00
parent 6ec621a20b
commit 4036f4300d
10 changed files with 168 additions and 44 deletions

View File

@@ -119,10 +119,21 @@ class PLGNTLS_class {
// SHORTCODES
// OPTIONS
const OPTION_PAYPAL = [
'_name'=>'cipf_paypal_credentials',
'_default' => [
'is_sandbox' =>true,
'client_id' =>PAYPAL_HUGO_SBOX_CLIENT_ID,
'client_secret'=>PAYPAL_HUGO_SBOX_CLIENT_SECRET,
],
];
// MENU
// ADMIN MENU
const SLUG_TOOGLE_ADMIN_MENU = ['_name'=>'toogle_admin_menu_url_cipf', 'toggle'=>'toggle', 'show'=>'show', 'hide'=>'hide'];
const TOGGLE_ADMIN_MENU = ['_name'=>'toggle_admin_menu_option_cipf', 'show'=>'show', 'hide'=>'hide'];
const ADMIN_POST_PAYPAL = 'paypal_credentials_CIPF';
const ADMIN_MENU_NONCE_PAYPAL = ['_name'=>'nonce_admin_menu_paypal_cipf', '_action'=>'action_admin_menu_paypal_cipf'];
const ADMIN_MENU_PAYPAL_SANDBOX_LIVE = ['_name'=>'sandbox_live', 'sandbox'=>'sandbox', 'live'=>'live'];
// FORMS
const FORM_PROF_COMMANDE_ID = 'prof_commande';