\MainWP\DashboardRest_Api

Class Rest_Api

Summary

Methods
Properties
Constants
instance()
init()
is_rest_api_enabled()
enabled_rest_api()
hook_rest_api_enabled()
mainwp_register_routes()
mainwp_validate_request()
mainwp_permission_check_request()
rest_api_validate()
mainwp_authentication_error()
mainwp_missing_data_error()
mainwp_invalid_data_error()
mainwp_run_process_success()
mainwp_rest_api_all_sites_callback()
mainwp_rest_api_all_sites_count_callback()
mainwp_rest_api_connected_sites_callback()
mainwp_rest_api_connected_sites_count_callback()
mainwp_rest_api_disconnected_sites_callback()
mainwp_rest_api_disconnected_sites_count_callback()
mainwp_rest_api_sync_sites_callback()
mainwp_rest_api_check_sites_callback()
mainwp_rest_api_disconnect_sites_callback()
mainwp_rest_api_http_status_callback()
mainwp_rest_api_health_score_callback()
mainwp_rest_api_security_issues_callback()
mainwp_rest_api_sites_available_updates_count_callback()
mainwp_rest_api_get_sites_by_url_callback()
mainwp_rest_api_get_sites_by_client_callback()
mainwp_rest_api_site_callback()
mainwp_rest_api_site_info_callback()
mainwp_rest_api_site_installed_plugins_callback()
mainwp_rest_api_site_installed_plugins_count_callback()
mainwp_rest_api_site_active_plugins_callback()
mainwp_rest_api_site_active_plugins_count_callback()
mainwp_rest_api_site_inactive_plugins_callback()
mainwp_rest_api_site_inactive_plugins_count_callback()
mainwp_rest_api_site_installed_themes_callback()
mainwp_rest_api_site_installed_themes_count_callback()
mainwp_rest_api_site_active_themes_callback()
mainwp_rest_api_site_inactive_themes_callback()
mainwp_rest_api_site_inactive_themes_count_callback()
mainwp_rest_api_site_available_updates_callback()
mainwp_rest_api_site_available_updates_count_callback()
mainwp_rest_api_site_abandoned_plugins_callback()
mainwp_rest_api_site_abandoned_plugins_count_callback()
mainwp_rest_api_site_abandoned_themes_callback()
mainwp_rest_api_site_abandoned_themes_count_callback()
mainwp_rest_api_site_http_status_callback()
mainwp_rest_api_site_health_score_callback()
mainwp_rest_api_site_security_issues_callback()
mainwp_rest_api_add_site_callback()
mainwp_rest_api_edit_site_callback()
mainwp_rest_api_sync_site_callback()
mainwp_rest_api_reconnect_site_callback()
mainwp_rest_api_disconnect_site_callback()
mainwp_rest_api_remove_site_callback()
mainwp_rest_api_site_update_wordpress_callback()
mainwp_rest_api_site_update_plugins_callback()
mainwp_rest_api_site_update_themes_callback()
mainwp_rest_api_site_update_translations_callback()
mainwp_rest_api_site_update_item_callback()
mainwp_rest_api_site_manage_plugin_callback()
mainwp_rest_api_site_manage_theme_callback()
mainwp_rest_api_check_site_http_status_callback()
mainwp_rest_api_non_mainwp_changes_callback()
mainwp_rest_api_non_mainwp_changes_count_callback()
mainwp_rest_api_available_updates_callback()
mainwp_rest_api_ignored_plugins_updates_callback()
mainwp_rest_api_site_ignored_plugins_updates_callback()
mainwp_rest_api_ignored_themes_updates_callback()
mainwp_rest_api_site_ignored_themes_updates_callback()
mainwp_rest_api_ignore_updates_callback()
mainwp_rest_api_ignore_update_callback()
mainwp_rest_api_unignore_updates_callback()
mainwp_rest_api_unignore_update_callback()
mainwp_rest_api_add_client_callback()
mainwp_rest_api_edit_client_callback()
mainwp_rest_api_remove_client_callback()
mainwp_rest_api_all_clients_callback()
mainwp_rest_api_all_tags_callback()
No public properties found
No constants found
No protected methods found
$api_version
N/A
No private methods found
$instance
$enabled_api
N/A

Properties

$api_version

$api_version : string

Protected variable to hold the API version.

Type

string — API version

$instance

$instance : mixed

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

Type

mixed — Default null

$enabled_api

$enabled_api : boolean

Private variable enabled api.

Type

boolean — API enabled.

Methods

instance()

instance() : \MainWP\Dashboard\self::$instance

Method instance()

Create public static instance.

Returns

\MainWP\Dashboard\self::$instance

init()

init() 

Method init()

Adds an action to generate API credentials. Adds an action to create the rest API endpoints if activated in the plugin settings.

is_rest_api_enabled()

is_rest_api_enabled() 

Method is_rest_api_enabled()

Check if Enabled the REST API.

enabled_rest_api()

enabled_rest_api() 

Method enabled_rest_api()

Enabled the REST API.

hook_rest_api_enabled()

hook_rest_api_enabled() 

Method hook_rest_api_enabled()

Hook to check if Enabled the REST API.

mainwp_register_routes()

mainwp_register_routes() 

Method mainwp_rest_api_init()

Creates the necessary endpoints for the api. Note, for a request to be successful the URL query parameters consumer_key and consumer_secret need to be set and correct.

mainwp_validate_request()

mainwp_validate_request(array  $request) : boolean

Method mainwp_rest_api_init()

Makes sure the correct consumer key and secret are entered.

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

boolean —

Whether the api credentials are valid.

mainwp_permission_check_request()

mainwp_permission_check_request(array  $request, array  $item) : boolean

Method mainwp_permission_check_request()

Check request permissions.

Parameters

array $request

The request made in the API call which includes all parameters.

array $item

API Keys using.

Throws

\Exception

Request permissions check.

Returns

boolean —

Whether the api permissions are valid.

rest_api_validate()

rest_api_validate(boolean  $input_value, array  $request) : boolean

Method rest_api_validate()

Hook validate the request.

Parameters

boolean $input_value

input filter value, it should always be FALSE.

array $request

The request made in the API call which includes all parameters.

Returns

boolean —

Whether the api credentials are valid.

mainwp_authentication_error()

mainwp_authentication_error() : array

Method mainwp_authentication_error()

Common error message when consumer key and secret are wrong.

Returns

array —

$response Array with an error message explaining that the credentials are wrong.

mainwp_missing_data_error()

mainwp_missing_data_error() : array

Method mainwp_missing_data_error()

Common error message when data is missing from the request.

Returns

array —

$response Array with an error message explaining details are missing.

mainwp_invalid_data_error()

mainwp_invalid_data_error(string  $error = '') : array

Method mainwp_invalid_data_error()

Common error message when data in request is ivalid.

Parameters

string $error

Error message.

Returns

array —

$response Array with an error message explaining details are missing.

mainwp_run_process_success()

mainwp_run_process_success() : array

Method mainwp_run_process_success()

Common error message when data is missing from the request.

Returns

array —

$response Array with an error message explaining details are missing.

mainwp_rest_api_all_sites_callback()

mainwp_rest_api_all_sites_callback(array  $request) : object

Method mainwp_rest_api_all_sites_callback()

Callback function for managing the response to API requests made for the endpoint: all-sites Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/sites/all-sites API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_all_sites_count_callback()

mainwp_rest_api_all_sites_count_callback(array  $request) : object

Method mainwp_rest_api_all_sites_count_callback()

Callback function for managing the response to API requests made for the endpoint: all-sites-count Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/sites/all-sites-count API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_connected_sites_callback()

mainwp_rest_api_connected_sites_callback(array  $request) : object

Method mainwp_rest_api_connected_sites_callback()

Callback function for managing the response to API requests made for the endpoint: connected-sites Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/sites/connected-sites API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_connected_sites_count_callback()

mainwp_rest_api_connected_sites_count_callback(array  $request) : object

Method mainwp_rest_api_connected_sites_count_callback()

Callback function for managing the response to API requests made for the endpoint: connected-sites-count Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/sites/connected-sites-count API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_disconnected_sites_callback()

mainwp_rest_api_disconnected_sites_callback(array  $request) : object

Method mainwp_rest_api_disconnected_sites_callback()

Callback function for managing the response to API requests made for the endpoint: disconnected-sites Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/sites/disconnected-sites API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_disconnected_sites_count_callback()

mainwp_rest_api_disconnected_sites_count_callback(array  $request) : object

Method mainwp_rest_api_disconnected_sites_count_callback()

Callback function for managing the response to API requests made for the endpoint: disconnected-sites-count Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/sites/disconnected-sites-count API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_sync_sites_callback()

mainwp_rest_api_sync_sites_callback(array  $request) : object

Method mainwp_rest_api_sync_sites_callback()

Callback function for managing the response to API requests made for the endpoint: sync-sites Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/sites/sync-sites API Method: POST

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_check_sites_callback()

mainwp_rest_api_check_sites_callback(array  $request) : object

Method mainwp_rest_api_check_sites_callback()

Callback function for managing the response to API requests made for the endpoint: check-sites Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/sites/check-sites API Method: POST

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_disconnect_sites_callback()

mainwp_rest_api_disconnect_sites_callback(array  $request) : object

Method mainwp_rest_api_disconnect_sites_callback()

Callback function for managing the response to API requests made for the endpoint: disconnect-sites Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/sites/disconnect-sites API Method: POST

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_http_status_callback()

mainwp_rest_api_http_status_callback(array  $request) : object

Method mainwp_rest_api_http_status_callback()

Callback function for managing the response to API requests made for the endpoint: http-status Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/sites/http-status API Method: POST

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_health_score_callback()

mainwp_rest_api_health_score_callback(array  $request) : object

Method mainwp_rest_api_health_score_callback()

Callback function for managing the response to API requests made for the endpoint: health-score Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/sites/health-score API Method: POST

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_security_issues_callback()

mainwp_rest_api_security_issues_callback(array  $request) : object

Method mainwp_rest_api_security_issues_callback()

Callback function for managing the response to API requests made for the endpoint: security-issues Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/sites/security-issues API Method: POST

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_sites_available_updates_count_callback()

mainwp_rest_api_sites_available_updates_count_callback(array  $request) : object

Method mainwp_rest_api_sites_available_updates_count_callback()

Callback function for managing the response to API requests made for the endpoint: sites-available-updates-count Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/sites/sites-available-updates-count API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_get_sites_by_url_callback()

mainwp_rest_api_get_sites_by_url_callback(array  $request) : object

Method mainwp_rest_api_get_sites_by_url_callback()

Callback function for managing the response to API requests made for the endpoint: get-sites-by-url Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/sites/get-sites-by-url API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_get_sites_by_client_callback()

mainwp_rest_api_get_sites_by_client_callback(array  $request) : object

Method mainwp_rest_api_get_sites_by_client_callback()

Callback function for managing the response to API requests made for the endpoint: get-sites-by-client Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/sites/get-sites-by-client API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_callback()

mainwp_rest_api_site_callback(array  $request) : object

Method mainwp_rest_api_site_callback()

Callback function for managing the response to API requests made for the endpoint: site Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_info_callback()

mainwp_rest_api_site_info_callback(array  $request) : object

Method mainwp_rest_api_site_info_callback()

Callback function for managing the response to API requests made for the endpoint: site-info Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-info API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_installed_plugins_callback()

mainwp_rest_api_site_installed_plugins_callback(array  $request) : object

Method mainwp_rest_api_site_installed_plugins_callback()

Callback function for managing the response to API requests made for the endpoint: site-installed-plugins Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-installed-plugins API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_installed_plugins_count_callback()

mainwp_rest_api_site_installed_plugins_count_callback(array  $request) : object

Method mainwp_rest_api_site_installed_plugins_count_callback()

Callback function for managing the response to API requests made for the endpoint: site-installed-plugins-count Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-installed-plugins-count API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_active_plugins_callback()

mainwp_rest_api_site_active_plugins_callback(array  $request) : object

Method mainwp_rest_api_site_active_plugins_callback()

Callback function for managing the response to API requests made for the endpoint: site-active-plugins Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-active-plugins API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_active_plugins_count_callback()

mainwp_rest_api_site_active_plugins_count_callback(array  $request) : object

Method mainwp_rest_api_site_active_plugins_count_callback()

Callback function for managing the response to API requests made for the endpoint: site-active-plugins-count Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-active-plugins-count API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_inactive_plugins_callback()

mainwp_rest_api_site_inactive_plugins_callback(array  $request) : object

Method mainwp_rest_api_site_inactive_plugins_callback()

Callback function for managing the response to API requests made for the endpoint: site-inactive-plugins Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-inactive-plugins API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_inactive_plugins_count_callback()

mainwp_rest_api_site_inactive_plugins_count_callback(array  $request) : object

Method mainwp_rest_api_site_inactive_plugins_count_callback()

Callback function for managing the response to API requests made for the endpoint: site-inactive-plugins-count Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-inactive-plugins-count API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_installed_themes_callback()

mainwp_rest_api_site_installed_themes_callback(array  $request) : object

Method mainwp_rest_api_site_installed_themes_callback()

Callback function for managing the response to API requests made for the endpoint: site-installed-themes Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-installed-themes API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_installed_themes_count_callback()

mainwp_rest_api_site_installed_themes_count_callback(array  $request) : object

Method mainwp_rest_api_site_installed_themes_count_callback()

Callback function for managing the response to API requests made for the endpoint: site-installed-themes-count Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-installed-themes-count API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_active_themes_callback()

mainwp_rest_api_site_active_themes_callback(array  $request) : object

Method mainwp_rest_api_site_active_themes_callback()

Callback function for managing the response to API requests made for the endpoint: site-active-themes Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-active-themes API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_inactive_themes_callback()

mainwp_rest_api_site_inactive_themes_callback(array  $request) : object

Method mainwp_rest_api_site_inactive_themes_callback()

Callback function for managing the response to API requests made for the endpoint: site-inactive-themes Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-inactive-themes API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_inactive_themes_count_callback()

mainwp_rest_api_site_inactive_themes_count_callback(array  $request) : object

Method mainwp_rest_api_site_inactive_themes_count_callback()

Callback function for managing the response to API requests made for the endpoint: site-inactive-themes-count Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-inactive-themes-count API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_available_updates_callback()

mainwp_rest_api_site_available_updates_callback(array  $request) : object

Method mainwp_rest_api_site_available_updates_callback()

Callback function for managing the response to API requests made for the endpoint: site-available-updates Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-available-updates API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_available_updates_count_callback()

mainwp_rest_api_site_available_updates_count_callback(array  $request) : object

Method mainwp_rest_api_site_available_updates_count_callback()

Callback function for managing the response to API requests made for the endpoint: site-available-updates-count Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-available-updates-count API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_abandoned_plugins_callback()

mainwp_rest_api_site_abandoned_plugins_callback(array  $request) : object

Method mainwp_rest_api_site_abandoned_plugins_callback()

Callback function for managing the response to API requests made for the endpoint: site-abandoned-plugins Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-abandoned-plugins API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_abandoned_plugins_count_callback()

mainwp_rest_api_site_abandoned_plugins_count_callback(array  $request) : object

Method mainwp_rest_api_site_abandoned_plugins_count_callback()

Callback function for managing the response to API requests made for the endpoint: site-abandoned-plugins-count Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-abandoned-plugins-count API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_abandoned_themes_callback()

mainwp_rest_api_site_abandoned_themes_callback(array  $request) : object

Method mainwp_rest_api_site_abandoned_themes_callback()

Callback function for managing the response to API requests made for the endpoint: site-abandoned-themes Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-abandoned-themes API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_abandoned_themes_count_callback()

mainwp_rest_api_site_abandoned_themes_count_callback(array  $request) : object

Method mainwp_rest_api_site_abandoned_themes_count_callback()

Callback function for managing the response to API requests made for the endpoint: site-abandoned-themes-count Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-abandoned-themes-count API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_http_status_callback()

mainwp_rest_api_site_http_status_callback(array  $request) : object

Method mainwp_rest_api_site_http_status_callback()

Callback function for managing the response to API requests made for the endpoint: site-http-status Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-http-status API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_health_score_callback()

mainwp_rest_api_site_health_score_callback(array  $request) : object

Method mainwp_rest_api_site_health_score_callback()

Callback function for managing the response to API requests made for the endpoint: site-health-score Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-health-score API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_security_issues_callback()

mainwp_rest_api_site_security_issues_callback(array  $request) : object

Method mainwp_rest_api_site_security_issues_callback()

Callback function for managing the response to API requests made for the endpoint: site-security-issues Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-security-issues API Method: get

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_add_site_callback()

mainwp_rest_api_add_site_callback(array  $request) : object

Method mainwp_rest_api_add_site_callback()

Callback function for managing the response to API requests made for the endpoint: add-site Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/add-site API Method: POST

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_edit_site_callback()

mainwp_rest_api_edit_site_callback(array  $request) : object

Method mainwp_rest_api_edit_site_callback()

Callback function for managing the response to API requests made for the endpoint: edit-site Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/edit-site API Method: PUT

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_sync_site_callback()

mainwp_rest_api_sync_site_callback(array  $request) : object

Method mainwp_rest_api_sync_site_callback()

Callback function for managing the response to API requests made for the endpoint: sync-site Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/sync-site API Method: POST

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_reconnect_site_callback()

mainwp_rest_api_reconnect_site_callback(array  $request) : object

Method mainwp_rest_api_reconnect_site_callback()

Callback function for managing the response to API requests made for the endpoint: reconnect-site Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/sites/reconnect-site API Method: POST

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_disconnect_site_callback()

mainwp_rest_api_disconnect_site_callback(array  $request) : object

Method mainwp_rest_api_disconnect_site_callback()

Callback function for managing the response to API requests made for the endpoint: disconnect-site Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/sites/disconnect-site API Method: POST

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_remove_site_callback()

mainwp_rest_api_remove_site_callback(array  $request) : object

Method mainwp_rest_api_remove_site_callback()

Callback function for managing the response to API requests made for the endpoint: remove-site Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/remove-site API Method: DELETE

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_update_wordpress_callback()

mainwp_rest_api_site_update_wordpress_callback(array  $request) : object

Method mainwp_rest_api_site_update_wordpress_callback()

Callback function for managing the response to API requests made for the endpoint: site-update-wordpress Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-update-wordpress API Method: PUT

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_update_plugins_callback()

mainwp_rest_api_site_update_plugins_callback(array  $request) : object

Method mainwp_rest_api_site_update_plugins_callback()

Callback function for managing the response to API requests made for the endpoint: site-update-plugins Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-update-plugins API Method: PUT

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_update_themes_callback()

mainwp_rest_api_site_update_themes_callback(array  $request) : object

Method mainwp_rest_api_site_update_themes_callback()

Callback function for managing the response to API requests made for the endpoint: site-update-themes Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-update-themes API Method: PUT

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_update_translations_callback()

mainwp_rest_api_site_update_translations_callback(array  $request) : object

Method mainwp_rest_api_site_update_translations_callback()

Callback function for managing the response to API requests made for the endpoint: site-update-translations Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-update-translations API Method: PUT

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_update_item_callback()

mainwp_rest_api_site_update_item_callback(array  $request) : object

Method mainwp_rest_api_site_update_item_callback()

Callback function for managing the response to API requests made for the endpoint: site-update-item Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-update-item API Method: PUT

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_manage_plugin_callback()

mainwp_rest_api_site_manage_plugin_callback(array  $request) : object

Method mainwp_rest_api_site_manage_plugin_callback()

Callback function for managing the response to API requests made for the endpoint: site-manage-plugin Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-manage-plugin API Method: POST

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_manage_theme_callback()

mainwp_rest_api_site_manage_theme_callback(array  $request) : object

Method mainwp_rest_api_site_manage_theme_callback()

Callback function for managing the response to API requests made for the endpoint: site-manage-theme Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-manage-theme API Method: POST

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_check_site_http_status_callback()

mainwp_rest_api_check_site_http_status_callback(array  $request) : object

Method mainwp_rest_api_check_site_http_status_callback()

Callback function for managing the response to API requests made for the endpoint: check-site-http-status Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/check-site-http-status API Method: POST

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_non_mainwp_changes_callback()

mainwp_rest_api_non_mainwp_changes_callback(array  $request) : object

Method mainwp_rest_api_non_mainwp_changes_callback()

Callback function for managing the response to API requests made for the endpoint: non-mainwp-changes Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/non-mainwp-changes API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_non_mainwp_changes_count_callback()

mainwp_rest_api_non_mainwp_changes_count_callback(array  $request) : object

Method mainwp_rest_api_non_mainwp_changes_count_callback()

Callback function for managing the response to API requests made for the endpoint: non-mainwp-changes-count Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/non-mainwp-changes-count API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_available_updates_callback()

mainwp_rest_api_available_updates_callback(array  $request) : object

Method mainwp_rest_api_available_updates_callback()

Callback function for managing the response to API requests made for the endpoint: available-updates Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/updates/available-updates API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_ignored_plugins_updates_callback()

mainwp_rest_api_ignored_plugins_updates_callback(array  $request) : object

Method mainwp_rest_api_ignored_plugins_updates_callback()

Callback function for managing the response to API requests made for the endpoint: ignored-plugins-updates Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/updates/ignored-plugins-updates API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_ignored_plugins_updates_callback()

mainwp_rest_api_site_ignored_plugins_updates_callback(array  $request) : object

Method mainwp_rest_api_site_ignored_plugins_updates_callback()

Callback function for managing the response to API requests made for the endpoint: site-ignored-plugins-updates Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/updates/site-ignored-plugins-updates API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_ignored_themes_updates_callback()

mainwp_rest_api_ignored_themes_updates_callback(array  $request) : object

Method mainwp_rest_api_ignored_themes_updates_callback()

Callback function for managing the response to API requests made for the endpoint: ignored-themes-updates Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/updates/ignored-themes-updates API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_site_ignored_themes_updates_callback()

mainwp_rest_api_site_ignored_themes_updates_callback(array  $request) : object

Method mainwp_rest_api_site_ignored_themes_updates_callback()

Callback function for managing the response to API requests made for the endpoint: site-ignored-themes-updates Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/updates/site-ignored-themes-updates API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_ignore_updates_callback()

mainwp_rest_api_ignore_updates_callback(array  $request) : object

Method mainwp_rest_api_ignore_updates_callback()

Callback function for managing the response to API requests made for the endpoint: ignore-updates Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/updates/ignore-updates API Method: POST

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_ignore_update_callback()

mainwp_rest_api_ignore_update_callback(array  $request) : object

Method mainwp_rest_api_ignore_update_callback()

Callback function for managing the response to API requests made for the endpoint: ignore-update Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/updates/ignore-update API Method: POST

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_unignore_updates_callback()

mainwp_rest_api_unignore_updates_callback(array  $request) : object

Method mainwp_rest_api_unignore_updates_callback()

Callback function for managing the response to API requests made for the endpoint: unignore-updates Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/updates/unignore-updates API Method: POST

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_unignore_update_callback()

mainwp_rest_api_unignore_update_callback(array  $request) : object

Method mainwp_rest_api_unignore_update_callback()

Callback function for managing the response to API requests made for the endpoint: unignore-update Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/updates/unignore-update API Method: POST

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_add_client_callback()

mainwp_rest_api_add_client_callback(array  $request) : object

Method mainwp_rest_api_add_client_callback()

Callback function for managing the response to API requests made for the endpoint: add-client Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/client/add-client API Method: POST

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_edit_client_callback()

mainwp_rest_api_edit_client_callback(array  $request) : object

Method mainwp_rest_api_edit_client_callback()

Callback function for managing the response to API requests made for the endpoint: edit-client Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/client/edit-client API Method: PUT

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_remove_client_callback()

mainwp_rest_api_remove_client_callback(array  $request) : object

Method mainwp_rest_api_remove_client_callback()

Callback function for managing the response to API requests made for the endpoint: remove-client Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/client/remove-client API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_all_clients_callback()

mainwp_rest_api_all_clients_callback(array  $request) : object

Method mainwp_rest_api_all_clients_callback()

Callback function for managing the response to API requests made for the endpoint: all-clients Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/clients/all-clients API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.

mainwp_rest_api_all_tags_callback()

mainwp_rest_api_all_tags_callback(array  $request) : object

Method mainwp_rest_api_all_tags_callback()

Callback function for managing the response to API requests made for the endpoint: all-tags Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/tags/all-tags API Method: GET

Parameters

array $request

The request made in the API call which includes all parameters.

Returns

object —

$response An object that contains the return data and status of the API request.