PHP Class Message_Board_Admin_Edit_Topics

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.
bulk_actions ( array $actions ) : array Customize the bulk actions drop-down.
display_post_states ( array $post_states, object $post ) Filter for the post_states hook. We're going to replace any defaults and roll our own.
edit_columns ( array $post_columns ) : array Customize the columns on the edit post screen.
get_instance ( ) : object Returns the instance.
handler ( ) : void Callback function for handling post status changes.
load_edit ( ) : void Adds a custom filter on 'request' when viewing the edit menu items screen in the admin.
manage_columns ( string $column, integer $post_id ) Handles the output for custom columns.
manage_sortable_columns ( array $columns ) : array Customize the sortable columns.
print_styles ( ) : void Enqueue the plugin admin CSS.
request ( array $vars ) : array Filter on the request hook to change what posts are loaded.
row_actions ( array $actions, object $post ) : array Custom row actions below the post title.
views ( array $views ) : array Add custom views (status list).

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

bulk_actions() public method

Customize the bulk actions drop-down.
Since: 1.0.0
public bulk_actions ( array $actions ) : array
$actions array
return array

display_post_states() public method

Filter for the post_states hook. We're going to replace any defaults and roll our own.
Since: 1.0.0
public display_post_states ( array $post_states, object $post )
$post_states array
$post object

edit_columns() public method

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

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_edit() public method

Adds a custom filter on 'request' when viewing the edit menu items screen in the admin.
Since: 1.0.0
public load_edit ( ) : void
return void

manage_columns() public method

Handles the output for custom columns.
Since: 1.0.0
public manage_columns ( string $column, integer $post_id )
$column string
$post_id integer

manage_sortable_columns() public method

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

print_styles() public method

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

request() public method

Filter on the request hook to change what posts are loaded.
Since: 1.0.0
public request ( array $vars ) : array
$vars array
return array

row_actions() public method

Custom row actions below the post title.
Since: 1.0.0
public row_actions ( array $actions, object $post ) : array
$actions array
$post object
return array

views() public method

Add custom views (status list).
Since: 1.0.0
public views ( array $views ) : array
$views array
return array