Example #1
0
 /**
  * Retrieve the current session instance.
  *
  * @param bool $session_id Session ID from which to populate data.
  *
  * @return bool|WP_Session
  */
 public static function get_instance()
 {
     if (!self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Example #2
0
 public function init()
 {
     $this->session = gPluginSession::get_instance();
     return $this->session;
 }