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; }
static function get_id() { return parent::_get_id(__CLASS__); }
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); }
static function get_id() { return parent::_get_page_id('edit-profile.php'); }
function appthemes_manage_edit_page_features() { APP_View_Page::manage_edit_page_features(); }