WordPress at a glance
class is not described

WP_Super_Cache_Rest_Get_Plugins{} WPSCache 1.0

No Hooks.

Return

Null. Nothing.

Usage

$WP_Super_Cache_Rest_Get_Plugins = new WP_Super_Cache_Rest_Get_Plugins();
// use class methods

Methods

  1. callback( $request )

Code of WP_Super_Cache_Rest_Get_Plugins{} WPSCache 1.7.1

<?php
class WP_Super_Cache_Rest_Get_Plugins extends WP_REST_Controller {

	/**
	 * GET a list of plugins through the /plugins/ endpoint
	 *
	 * @param WP_REST_Request $request Full data about the request.
	 * @return WP_Error|WP_REST_Response
	 */
	public function callback( $request ) {

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