WC_Plugin_Api_Updater::plugins_api()public staticWC 1.0

Plugin information callback for Woo extensions.

Method of the class: WC_Plugin_Api_Updater{}

No Hooks.

Return

Object. An updated $response.

Usage

$result = WC_Plugin_Api_Updater::plugins_api( $response, $action, $args );
$response(object) (required)
The response core needs to display the modal.
$action(string) (required)
The requested plugins_api() action.
$args(object) (required)
Arguments passed to plugins_api().

WC_Plugin_Api_Updater::plugins_api() code WC 9.7.1

public static function plugins_api( $response, $action, $args ) {
	if ( 'plugin_information' !== $action ) {
		return $response;
	}

	return self::override_products_api_response( $response, $action, $args );
}