WordPress at a glance
function is not described

WP_Super_Cache_Rest_Update_Plugins::callback() public WPSCache 1.0

Toggle plugins on/off through the /plugins/ endpoint

{} It's a method of the class: WP_Super_Cache_Rest_Update_Plugins{}

No Hooks.

Return

WP_Error/WP_REST_Response.

Usage

$WP_Super_Cache_Rest_Update_Plugins = new WP_Super_Cache_Rest_Update_Plugins();
$WP_Super_Cache_Rest_Update_Plugins->callback( $request );
$request(WP_REST_Request) (required)
Full data about the request.

Code of WP_Super_Cache_Rest_Update_Plugins::callback() WPSCache 1.7.1

<?php
public function callback( $request ) {
	$parameters = $request->get_json_params();

	global $valid_nonce;
	$valid_nonce = true;

	wpsc_update_plugin_list( $parameters );
	$list = wpsc_get_plugin_list();

	return rest_ensure_response( $list );
}