PHP Class Message_Board_Admin_Dashboard

显示文件 Open project: justintadlock/message-board Class Usage Examples

Public Methods

Method Description
__construct ( ) : void Sets up needed actions/filters for the admin to initialize.
dashboard_widgets ( ) : void Adds custom dashboard widgets. Note that we're using add_meta_box() rather than the wp_add_dashboard_widget() function so that we can control the positioning.
get_instance ( ) : object Returns the instance.
load_dashboard ( ) : void Runs our actions only on the dashboard admin screen.
print_styles ( ) : void Enqueue the plugin admin CSS.

Method Details

__construct() public method

Sets up needed actions/filters for the admin to initialize.
Since: 1.0.0
public __construct ( ) : void
return void

dashboard_widgets() public method

Adds custom dashboard widgets. Note that we're using add_meta_box() rather than the wp_add_dashboard_widget() function so that we can control the positioning.
Since: 1.0.0
public dashboard_widgets ( ) : void
return void

get_instance() public static method

Returns the instance.
Since: 1.0.0
public static get_instance ( ) : object
return object

load_dashboard() public method

Runs our actions only on the dashboard admin screen.
Since: 1.0.0
public load_dashboard ( ) : void
return void

print_styles() public method

Enqueue the plugin admin CSS.
Since: 1.0.0
public print_styles ( ) : void
return void