\MainWP\DashboardMainWP_Bulk_Post

Class MainWP_Bulk_Post

Summary

Methods
Properties
Constants
__construct()
handle_edit_bulkpost()
redirect_edit_bulkpost()
redirect_edit_bulkpage()
save_bulkpost()
save_bulkpage()
create_post_type()
post_updated_messages()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() 

MainWP_Bulk_Post constructor.

Run each time the class is called.

handle_edit_bulkpost()

handle_edit_bulkpost() 

Method handle_edit_bulkpost()

Handle bulkpost edit process.

redirect_edit_bulkpost()

redirect_edit_bulkpost(string  $location, integer  $post_id) : string

Method redirect_edit_bulkpost().

Redirect to edit post.

Parameters

string $location

Target URL.

integer $post_id

Post ID number.

Returns

string —

$location Target URL.

redirect_edit_bulkpage()

redirect_edit_bulkpage(string  $location, integer  $post_id) : string

Method redirect_edit_bulkpage().

Redirect to edit page.

Parameters

string $location

Target URL.

integer $post_id

Page ID number.

Returns

string —

$location Target URL.

save_bulkpost()

save_bulkpost(integer  $post_id) : void

Method save_bulkpost().

Save page (Bulkpost custom post type).

Parameters

integer $post_id

Post ID.

save_bulkpage()

save_bulkpage(integer  $post_id) : void

Method save_bulkpage().

Save page (Bulkpage custom post type).

Parameters

integer $post_id

Page ID.

create_post_type()

create_post_type() 

Method create_post_type()

Register "Bulkpost" and "Bulkpage" custom post types.

post_updated_messages()

post_updated_messages(string  $messages) : string

Method post_updated_messages()

Render post updated message.

Parameters

string $messages

Message to display.

Returns

string —

$messages.