WooCommerce Code Reference

WC_Marketplace_Updater
in package

Marketplace Suggestions Updater

Table of Contents

add_personalization_data()  : array<string|int, mixed>
Add additional data to the request for personalized suggestions.
init()  : mixed
Schedule events and hook appropriate actions.
load()  : mixed
Setup.
retry()  : mixed
Used when an error has occurred when fetching suggestions.
update_marketplace_suggestions()  : mixed
Fetches new marketplace data, updates wc_marketplace_suggestions.

Methods

add_personalization_data()

Add additional data to the request for personalized suggestions.

public static add_personalization_data(array<string|int, mixed> $request_params) : array<string|int, mixed>
Parameters
$request_params : array<string|int, mixed>

The data to include in the request.

Return values
array<string|int, mixed>