wip filter email registration
This commit is contained in:
@@ -107,8 +107,8 @@ class PLGNTLS_class {
|
||||
//const PAYPAL_CLIENT_ID = self::PAYPAL_HUGO_LIVE_CLIENT_ID;
|
||||
//const PAYPAL_CLIENT_SECRET = self::PAYPAL_HUGO_LIVE_CLIENT_SECRET;
|
||||
//const PAYPAL_API_BASE_URL = self::PAYPAL_HUGO_LIVE_API_BASE_URL;
|
||||
const PAYPAL_MESSAGE_SUCCESS = '`paiement reussi`';
|
||||
const PAYPAL_MESSAGE_FAILURE = '`paiement raté`';
|
||||
const PAYPAL_MESSAGE_SUCCESS = '`Paiement reussi, vous allez être redirigé-es vers votre espace`';
|
||||
const PAYPAL_MESSAGE_FAILURE = '`Paiement raté, vous allez être redirigé-es vers votre espace`';
|
||||
|
||||
// ROLES
|
||||
const ROLE_PROF = 'professeur__professeure';
|
||||
@@ -147,7 +147,15 @@ class PLGNTLS_class {
|
||||
const INPUT_HIDDEN_ROLE = 'cipf_user_role';
|
||||
|
||||
|
||||
private static $_DEBUG_INFOS = false;
|
||||
/*
|
||||
* 0 : dont output
|
||||
* 1 : output only level 1 - not always on top of function, output default, only prevent if specifically level 2
|
||||
* typical for early hooks like 'init' or 'wp', where there is a first check to see if you should 'enter' in this function, level 1 will be present after thoses checks
|
||||
* 2 : output everything
|
||||
*
|
||||
*/
|
||||
private static $_DEBUG_INFOS = 0;
|
||||
|
||||
private static $_plugin_dir_path;
|
||||
private static $_plugin_name;
|
||||
private static $_file_dir_path;
|
||||
@@ -235,9 +243,13 @@ class PLGNTLS_class {
|
||||
* for debug purposes
|
||||
*
|
||||
*/
|
||||
public static function debug_infos() {
|
||||
if (self::$_DEBUG_INFOS === false)
|
||||
public static function debug_infos($level = null) {
|
||||
if (self::$_DEBUG_INFOS === 0) {
|
||||
return;
|
||||
}
|
||||
else if (self::$_DEBUG_INFOS === 1 && $level === 2) {
|
||||
return;
|
||||
}
|
||||
$trace = debug_backtrace();
|
||||
$function = $trace[1]['function'];
|
||||
$file = $trace[0]['file'];
|
||||
|
||||
Reference in New Issue
Block a user