\MainWP\DashboardMainWP_Post_Handler

Class MainWP_Post_Handler

Summary

Methods
Properties
Constants
init()
secure_request()
check_security()
add_action()
add_action_nonce()
create_security_nonces()
instance()
add_post_action()
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()
ajax_guided_tours_option_update()
mainwp_leftmenu_filter_group()
dismiss_activate_notice()
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_clients_add_client()
mainwp_clients_delete_client()
mainwp_clients_save_field()
mainwp_clients_delete_general_field()
mainwp_clients_delete_field()
mainwp_notes_save()
mainwp_clients_notes_save()
mainwp_clients_suspend_client()
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()
ajax_refresh_icon()
ajax_upload_custom_icon()
ajax_select_custom_theme()
ajax_site_actions_dismiss()
ajax_delete_non_mainwp_actions()
ajax_import_demo_data()
ajax_delete_demo_data()
No public properties found
No constants found
No protected methods found
$security_nonces
$security_names
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.

$security_names

$security_names : 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  $out_die = true) : boolean

Method check_security()

Check security request.

Parameters

string $action

Action to perform.

string $query_arg

Query argument.

boolean $out_die

return or exit.

Returns

boolean —

true or false

add_action()

add_action(string  $action, string  $callback, integer  $priority = 10, integer  $accepted = 2) 

Method add_action()

Add ajax action.

Parameters

string $action

Action to perform.

string $callback

Callback to perform.

integer $priority

priority aciton.

integer $accepted

number args.

add_action_nonce()

add_action_nonce(string  $action) 

Method add_action_nonce()

Add security nonce.

Parameters

string $action

Action to perform.

create_security_nonces()

create_security_nonces() : self

Create the security nonces.

Returns

self —

$security_nonces.

add_post_action()

add_post_action(string  $action, string  $callback) 

Method add_post_action()

Add ajax action.

Parameters

string $action

Action to perform.

string $callback

Callback to perform.

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.

ajax_guided_tours_option_update()

ajax_guided_tours_option_update() 

Method ajax_guided_tours_option_update()

Update saved MainWP Settings.

mainwp_leftmenu_filter_group()

mainwp_leftmenu_filter_group() 

Method mainwp_leftmenu_filter_group()

MainWP left menu filter by group.

dismiss_activate_notice()

dismiss_activate_notice() 

Method dismiss_activate_notice()

Dismiss activate notice.

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_monitoring_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_clients_add_client()

mainwp_clients_add_client() 

Method mainwp_clients_add_client()

Add Client for, Page: BulkAddClient.

mainwp_clients_delete_client()

mainwp_clients_delete_client() 

Method mainwp_clients_delete_client()

Add Client for, Page: BulkAddClient.

mainwp_clients_save_field()

mainwp_clients_save_field() 

Method mainwp_clients_save_field()

Save client custom fields.

mainwp_clients_delete_general_field()

mainwp_clients_delete_general_field() 

Method mainwp_clients_delete_general_field()

Delete client general fields.

mainwp_clients_delete_field()

mainwp_clients_delete_field() 

Method mainwp_clients_delete_field()

Delete client custom fields.

mainwp_notes_save()

mainwp_notes_save() 

Method mainwp_notes_save()

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

mainwp_clients_notes_save()

mainwp_clients_notes_save() 

Method mainwp_clients_notes_save()

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

mainwp_clients_suspend_client()

mainwp_clients_suspend_client() 

Method mainwp_clients_suspend_client()

Post handler for suspend client, 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.

ajax_refresh_icon()

ajax_refresh_icon() 

Method ajax_refresh_icon()

ajax_upload_custom_icon()

ajax_upload_custom_icon() 

Method ajax_upload_custom_icon()

ajax_select_custom_theme()

ajax_select_custom_theme() 

Method ajax_select_custom_theme()

ajax_site_actions_dismiss()

ajax_site_actions_dismiss() 

Method ajax_site_actions_dismiss()

ajax_delete_non_mainwp_actions()

ajax_delete_non_mainwp_actions() 

Method ajax_site_actions_dismiss()

ajax_import_demo_data()

ajax_import_demo_data() 

Method ajax_import_demo_data().

ajax_delete_demo_data()

ajax_delete_demo_data() 

Method ajax_delete_demo_data().