\MainWP\DashboardRest_Api

Class Rest_Api

Summary

Methods
Properties
Constants
instance()
init()
mainwp_generate_rand_hash()
mainwp_generate_api_credentials()
mainwp_register_routes()
mainwp_validate_request()
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_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_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()
No public properties found
No constants found
No protected methods found
$api_version
N/A
No private methods found
$instance
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

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.

mainwp_generate_rand_hash()

mainwp_generate_rand_hash() : string

Method mainwp_generate_rand_hash()

Generates a random hash to be used when generating the consumer key and secret.

Returns

string —

Returns random string.

mainwp_generate_api_credentials()

mainwp_generate_api_credentials() 

Method mainwp_generate_api_credentials()

Generates consumer key and secret and saves to the database encrypted.

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_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() : array

Method mainwp_invalid_data_error()

Common error message when data in request is ivalid.

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_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: site-add Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-add 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: site-edit Can be accessed via a request like: https://yourdomain.com/wp-json/mainwp/v1/site/site-edit 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_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.