Exemplo n.º 1
0
 function init()
 {
     $action = isset($_GET['action']) ? $_GET['action'] : 'login';
     if (!$this->needs_redirect($action)) {
         return;
     }
     $class = get_class($this);
     if (!parent::_get_id($class)) {
         return false;
     }
     $url = call_user_func(array($class, 'get_url'), 'redirect');
     wp_redirect($url);
     exit;
 }
Exemplo n.º 2
0
 static function get_id()
 {
     return parent::_get_id(__CLASS__);
 }