Beispiel #1
0
 /**
  * Returns the main instance.
  *
  * @return pw_new_user_approve
  */
 public static function instance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new pw_new_user_approve();
         self::$instance->includes();
         self::$instance->email_tags = new NUA_Email_Template_Tags();
     }
     return self::$instance;
 }
 public static function deconflict_nua_02_01($errors)
 {
     if (!empty($errors) && is_object($errors) && $errors->get_error_code()) {
         return $errors;
     }
     if (class_exists('pw_new_user_approve') && method_exists('pw_new_user_approve', 'show_user_pending_message')) {
         if (empty($errors) || !is_object($errors)) {
             $errors = new WP_Error();
         }
         pw_new_user_approve::instance()->show_user_pending_message($errors);
     }
     return $errors;
 }