WP_Super_Cache_Rest_Get_Plugins::callback()publicWPSCache 1.0

GET a list of plugins through the /plugins/ endpoint

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

No Hooks.

Return

WP_Error|WP_REST_Response.

Usage

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

Code of WP_Super_Cache_Rest_Get_Plugins::callback() WPSCache 1.8

public function callback( $request ) {

	$list = wpsc_get_plugin_list();
	return rest_ensure_response( $list );
}