Property | Type | Description | |
---|---|---|---|
$active_theme | An instance of the active public theme, which allows plugin hooks to execute |
Method | Description | |
---|---|---|
__construct ( ) | Verifies user credentials before creating the theme and displaying the request. | |
__static ( ) | Register plugin hooks | |
act ( $action ) | Dispatches the request to the defined method. (ie: post_{page}) | |
act_admin_ajax ( ) | Handle incoming requests to /admin_ajax for admin ajax requests | |
ajax_facets ( $handler_vars ) | Handle ajax requests for facets on admin pages | |
create_theme ( ) | Create the active theme instance | |
get_blank ( string $content = '' ) | Display a blank admin page with appropriate navigation. | |
get_sysinfo ( ) | Handles get requests for the system information page. | |
setup_admin_theme ( string $page, string $type = '' ) | Create the admin theme instance |
Method | Description | |
---|---|---|
display ( $template_name ) | Helper function to assign all handler_vars into the theme and displays a theme template. | |
filter_menus_by_permission ( array $menuarray ) : array | Remove menus for which the user does not have qualifying permissions. | |
get_main_menu ( |
Assembles the main menu for the admin area. | |
set_admin_template_vars ( $theme ) | Assigns the main menu to $mainmenu into the theme. |
Method | Description | |
---|---|---|
access_allowed ( $page, $type ) | Checks if the currently logged in user has access to a page and post type. |
public __construct ( ) |
public act ( $action ) |
public act_admin_ajax ( ) |
public ajax_facets ( $handler_vars ) | ||
$handler_vars |
protected display ( $template_name ) |
public get_sysinfo ( ) |
protected set_admin_template_vars ( $theme ) |
public setup_admin_theme ( string $page, string $type = '' ) | ||
$page | string | The admin page requested |
$type | string | The content type included in the request |