$api_version
$api_version : string
Protected variable to hold the API version.
Class Rest_Api
mainwp_validate_request(array $request) : boolean
Method mainwp_rest_api_init()
Makes sure the correct consumer key and secret are entered.
array | $request | The request made in the API call which includes all parameters. |
Whether the api credentials are valid.
mainwp_permission_check_request(array $request, array $item) : boolean
Method mainwp_permission_check_request()
Check request permissions.
array | $request | The request made in the API call which includes all parameters. |
array | $item | API Keys using. |
Request permissions check.
Whether the api permissions are valid.
rest_api_validate(boolean $input_value, array $request) : boolean
Method rest_api_validate()
Hook validate the request.
boolean | $input_value | input filter value, it should always be FALSE. |
array | $request | The request made in the API call which includes all parameters. |
Whether the api credentials are valid.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.
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
array | $request | The request made in the API call which includes all parameters. |
$response An object that contains the return data and status of the API request.