\MainWP\DashboardMainWP_Post_Handler

Class MainWP_Post_Handler

Summary

Methods
Properties
Constants
init()
secure_request()
check_security()
add_action()
add_security_nonce()
get_security_nonces()
instance()
mainwp_installation_warning_hide()
mainwp_users_search()
mainwp_posts_search()
mainwp_pages_search()
mainwp_get_categories()
mainwp_post_get_edit()
mainwp_user_delete()
mainwp_user_edit()
mainwp_user_update_password()
mainwp_user_update_user()
mainwp_post_unpublish()
mainwp_post_publish()
mainwp_post_approve()
mainwp_post_trash()
mainwp_post_delete()
mainwp_post_restore()
mainwp_page_unpublish()
mainwp_page_publish()
mainwp_page_trash()
mainwp_page_delete()
mainwp_page_restore()
mainwp_notice_status_update()
mainwp_status_saving()
ajax_widgets_order()
ajax_mainwp_save_settings()
mainwp_leftmenu_filter_group()
mainwp_dismiss_twit()
dismiss_activate_notice()
mainwp_twitter_dashboard_action()
mainwp_security_issues_request()
mainwp_security_issues_fix()
mainwp_security_issues_unfix()
ajax_disconnect_site()
ajax_sites_display_rows()
ajax_monitoring_display_rows()
mainwp_bulkadduser()
mainwp_importuser()
mainwp_notes_save()
mainwp_syncerrors_dismiss()
mainwp_events_notice_hide()
mainwp_showhide_sections()
mainwp_saving_status()
ajax_recheck_http()
mainwp_ignore_http_response()
mainwp_autoupdate_and_trust_child()
mainwp_force_destroy_sessions()
No public properties found
No constants found
No protected methods found
$security_nonces
N/A
No private methods found
$instance
N/A

Properties

$security_nonces

$security_nonces : string

Protected static variable to hold security nounces.

Type

string — Security nonce.

$instance

$instance : mixed

Private static variable to hold the single instance of the class.

Type

mixed — Default null

Methods

init()

init() : void

Initiate all actions.

Force Extending class to define this method.

secure_request()

secure_request(string  $action = '', string  $query_arg = 'security') 

Method secure_request()

Add security check to request parameter

Parameters

string $action

Action to perform.

string $query_arg

Query argument.

check_security()

check_security(string  $action = -1, string  $query_arg = 'security') : boolean

Method check_security()

Check security request.

Parameters

string $action

Action to perform.

string $query_arg

Query argument.

Returns

boolean —

true or false

add_action()

add_action(string  $action, string  $callback) 

Method add_action()

Add ajax action.

Parameters

string $action

Action to perform.

string $callback

Callback to perform.

add_security_nonce()

add_security_nonce(string  $action) 

Method add_security_nonce()

Add security nonce.

Parameters

string $action

Action to perform.

get_security_nonces()

get_security_nonces() : self

Return the security nonces.

Returns

self —

$security_nonces.

mainwp_installation_warning_hide()

mainwp_installation_warning_hide() 

Method mainwp_installation_warning_hide()

Hide the installation warning.

mainwp_users_search()

mainwp_users_search() 

Method mainwp_users_search()

Search Post handler, Page: User.

mainwp_posts_search()

mainwp_posts_search() 

Method mainwp_posts_search()

Search Post handler, Page: Posts.

mainwp_pages_search()

mainwp_pages_search() 

Method mainwp_pages_search()

Search Post handler, Page: Pages.

mainwp_get_categories()

mainwp_get_categories() 

Method mainwp_get_categories()

Get post/page categories.

mainwp_post_get_edit()

mainwp_post_get_edit() 

Method mainwp_post_get_edit()

Get post to edit.

mainwp_user_delete()

mainwp_user_delete() 

Method mainwp_user_delete()

Delete User from Child Site, Page: Users.

mainwp_user_edit()

mainwp_user_edit() 

Method mainwp_user_edit()

Edit User from Child Site, Page: Users.

mainwp_user_update_password()

mainwp_user_update_password() 

Method mainwp_user_update_password(

Update User password from Child Site, Page: Users.

mainwp_user_update_user()

mainwp_user_update_user() 

Method mainwp_user_update_user()

Update User from Child Site, Page: Users.

mainwp_post_unpublish()

mainwp_post_unpublish() 

Method mainwp_post_unpublish()

Unpublish post from Child Site, Page: Recent Posts.

mainwp_post_publish()

mainwp_post_publish() 

Method mainwp_post_publish()

Publish post on Child Site, Page: Recent Posts.

mainwp_post_approve()

mainwp_post_approve() 

Method mainwp_post_approve()

Approve post on Child Site, Page: Recent Posts.

mainwp_post_trash()

mainwp_post_trash() 

Method mainwp_post_trash()

Trash post on Child Site, Page: Recent Posts.

mainwp_post_delete()

mainwp_post_delete() 

Method mainwp_post_delete()

Delete post on Child Site, Page: Recent Posts.

mainwp_post_restore()

mainwp_post_restore() 

Method mainwp_post_restore()

Restore post, Page: Recent Posts.

mainwp_page_unpublish()

mainwp_page_unpublish() 

Method mainwp_page_unpublish()

Unpublish page, Page: Recent Pages.

mainwp_page_publish()

mainwp_page_publish() 

Method mainwp_page_publish()

Publish page, Page: Recent Pages.

mainwp_page_trash()

mainwp_page_trash() 

Method mainwp_page_trash()

Trash page, Page: Recent Pages.

mainwp_page_delete()

mainwp_page_delete() 

Method mainwp_page_delete()

Delete page, Page: Recent Pages.

mainwp_page_restore()

mainwp_page_restore() 

Method mainwp_page_restor()

Restore page, Page: Recent Pages.

mainwp_notice_status_update()

mainwp_notice_status_update() 

Method mainwp_notice_status_update()

Hide after installation notices, (PHP version, Trust MainWP Child, Multisite Warning and OpenSSL warning).

mainwp_status_saving()

mainwp_status_saving() 

Method mainwp_status_saving()

Save last_sync_sites time() or mainwp_status_saved_values.

ajax_widgets_order()

ajax_widgets_order() 

Method ajax_widget_order()

Update saved widget order.

ajax_mainwp_save_settings()

ajax_mainwp_save_settings() 

Method ajax_mainwp_save_settings()

Update saved MainWP Settings.

mainwp_leftmenu_filter_group()

mainwp_leftmenu_filter_group() 

Method mainwp_leftmenu_filter_group()

MainWP left menu filter by group.

mainwp_dismiss_twit()

mainwp_dismiss_twit() 

Method mainwp_dismiss_twit()

Dismiss the twitter bragger.

dismiss_activate_notice()

dismiss_activate_notice() 

Method dismiss_activate_notice()

Dismiss activate notice.

mainwp_twitter_dashboard_action()

mainwp_twitter_dashboard_action() : mixed

Method mainwp_twitter_dashboard_action()

Post handler for twitter bragger.

Returns

mixed —

$html|$success

mainwp_security_issues_request()

mainwp_security_issues_request() 

Method mainwp_security_issues_request()

Post handler for, Page: SecurityIssues.

mainwp_security_issues_fix()

mainwp_security_issues_fix() 

Method mainwp_security_issues_fix()

Post handler for 'fix issues', Page: SecurityIssues.

mainwp_security_issues_unfix()

mainwp_security_issues_unfix() 

Method mainwp_security_issues_unfix()

Post handler for 'unfix issues', Page: SecurityIssues.

ajax_disconnect_site()

ajax_disconnect_site() 

Method ajax_disconnect_site()

Disconnect Child Site.

ajax_sites_display_rows()

ajax_sites_display_rows() 

Method ajax_sites_display_rows()

Display rows via ajax, Page: Manage Sites.

ajax_monitoring_display_rows()

ajax_monitoring_display_rows() 

Method ajax_sites_display_rows()

Display rows via ajax, Page: Monitoring Sites.

mainwp_bulkadduser()

mainwp_bulkadduser() 

Method mainwp_bulkadduser()

Bulk Add User for, Page: BulkAddUser.

mainwp_importuser()

mainwp_importuser() 

Method mainwp_importuser()

Import user.

mainwp_notes_save()

mainwp_notes_save() 

Method mainwp_notes_save()

Post handler for save notes on, Page: Manage Sites.

mainwp_syncerrors_dismiss()

mainwp_syncerrors_dismiss() 

Method mainwp_syncerrors_dismiss()

Dismiss Sync errors for, Widget: RightNow.

mainwp_events_notice_hide()

mainwp_events_notice_hide() 

Method mainwp_events_notice_hide()

Hide events notice.

mainwp_showhide_sections()

mainwp_showhide_sections() 

Method mainwp_showhide_sections()

Show/Hide sections.

mainwp_saving_status()

mainwp_saving_status() 

Method mainwp_saving_status()

MainWP Saving Status.

ajax_recheck_http()

ajax_recheck_http() 

Method ajax_recheck_http()

Recheck Child Site http status code & message.

mainwp_ignore_http_response()

mainwp_ignore_http_response() 

Method mainwp_ignore_http_response()

Ignore Child Site https response.

mainwp_autoupdate_and_trust_child()

mainwp_autoupdate_and_trust_child() 

Method mainwp_autoupdate_and_trust_child()

Set MainWP Child Plugin to Trusted & AutoUpdate.

mainwp_force_destroy_sessions()

mainwp_force_destroy_sessions() 

Method mainwp_force_destroy_sessions()

Force destroy sessions.