WooCommerce Code Reference

WC_Plugin_Api_Updater
in package

Class WC_Plugin_Api_Updater

Table of Contents

load()  : mixed
Loads the class, runs on init.
override_products_api_response()  : mixed
Override the products API to fetch data from the Helper API if it's a Woo product.
plugins_api()  : object
Plugin information callback for Woo extensions.
themes_api()  : mixed
Theme information callback for Woo themes.

Methods

override_products_api_response()

Override the products API to fetch data from the Helper API if it's a Woo product.

public static override_products_api_response(object $response, string $action, object $args) : mixed
Parameters
$response : object

The response core needs to display the modal.

$action : string

The requested action.

$args : object

Arguments passed to the API.

Return values
mixed

plugins_api()

Plugin information callback for Woo extensions.

public static plugins_api(object $response, string $action, object $args) : object
Parameters
$response : object

The response core needs to display the modal.

$action : string

The requested plugins_api() action.

$args : object

Arguments passed to plugins_api().

Return values
objectAn updated $response.

themes_api()

Theme information callback for Woo themes.

public static themes_api(object $response, string $action, object $args) : mixed
Parameters
$response : object

The response core needs to display the modal.

$action : string

The requested themes_api() action.

$args : object

Arguments passed to themes_api().

Return values
mixed