PHP Class Message_Board_Admin_Post_Topic

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.
add_meta_boxes ( object $post ) : void Adds meta boxes needed for the edit post screen.
enqueue_scripts ( ) : void Loads scripts and styles.
get_instance ( ) : object Returns the instance.
load_post ( ) : void Callback function for the load-post.php or load-post-new.php screen.
save_post ( integer $post_id, object $post ) : void Callback for the save_post hook to handle meta boxes.

Method Details

__construct() public method

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

add_meta_boxes() public method

Adds meta boxes needed for the edit post screen.
Since: 1.0.0
public add_meta_boxes ( object $post ) : void
$post object
return void

enqueue_scripts() public method

Loads scripts and styles.
Since: 1.0.0
public enqueue_scripts ( ) : void
return void

get_instance() public static method

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

load_post() public method

Callback function for the load-post.php or load-post-new.php screen.
Since: 1.0.0
public load_post ( ) : void
return void

save_post() public method

Callback for the save_post hook to handle meta boxes.
Since: 1.0.0
public save_post ( integer $post_id, object $post ) : void
$post_id integer
$post object
return void