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__);
 }
Exemplo n.º 3
0
 function __construct()
 {
     self::$_template = 'tpl-categories.php';
     parent::__construct(self::$_template, __('Categories', APP_TD));
     // Replace any children the "Categories" menu item might have with the category dropdown
     add_filter('wp_nav_menu_objects', array($this, 'disable_children'), 10, 2);
     add_filter('walker_nav_menu_start_el', array($this, 'insert_dropdown'), 10, 4);
 }
Exemplo n.º 4
0
 static function get_id()
 {
     return parent::_get_page_id('edit-profile.php');
 }
Exemplo n.º 5
0
function appthemes_manage_edit_page_features()
{
    APP_View_Page::manage_edit_page_features();
}