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> —init()
Schedule events and hook appropriate actions.
public
static init() : mixed
Return values
mixed —load()
Setup.
public
static load() : mixed
Return values
mixed —retry()
Used when an error has occurred when fetching suggestions.
public
static retry() : mixed
Re-schedules the job earlier than the main weekly one.
Return values
mixed —update_marketplace_suggestions()
Fetches new marketplace data, updates wc_marketplace_suggestions.
public
static update_marketplace_suggestions() : mixed