PHP Class Message_Board_Admin_Users

Datei anzeigen Open project: justintadlock/message-board Class Usage Examples

Public Methods

Method Description
__construct ( ) : void Sets up needed actions/filters for the admin to initialize.
admin_notices ( ) : void Displays admin notices for the edit forum screen.
columns ( array $columns ) : array Customize the columns on the edit post screen.
custom_column ( string $column, string $column_name, $user_id ) Handles the output for custom columns.
get_instance ( ) : object Returns the instance.
handler ( ) : void Callback function for handling post status changes.
load_users ( ) : void Adds actions/filters.
pre_get_users ( object $query ) : void Filter on the user query to change the users loaded.
print_styles ( ) : void Enqueue the plugin admin CSS.
roles_dropdown ( ) : void Adds a forum roles dropdown above the users table.
sortable_columns ( array $columns ) : array Customize the sortable columns.

Method Details

__construct() public method

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

admin_notices() public method

Displays admin notices for the edit forum screen.
Since: 1.0.0
public admin_notices ( ) : void
return void

columns() public method

Customize the columns on the edit post screen.
Since: 1.0.0
public columns ( array $columns ) : array
$columns array
return array

custom_column() public method

Handles the output for custom columns.
Since: 1.0.0
public custom_column ( string $column, string $column_name, $user_id )
$column string
$column_name string

get_instance() public static method

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

handler() public method

Callback function for handling post status changes.
Since: 1.0.0
public handler ( ) : void
return void

load_users() public method

Adds actions/filters.
Since: 1.0.0
public load_users ( ) : void
return void

pre_get_users() public method

Filter on the user query to change the users loaded.
Since: 1.0.0
public pre_get_users ( object $query ) : void
$query object
return void

print_styles() public method

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

roles_dropdown() public method

Adds a forum roles dropdown above the users table.
Since: 1.0.0
public roles_dropdown ( ) : void
return void

sortable_columns() public method

Customize the sortable columns.
Since: 1.0.0
public sortable_columns ( array $columns ) : array
$columns array
return array