rest_preload_api_request
rest_preload_api_request ( $memo, $path )
Parameters:- (array) memo Reduce accumulator.
- (string) path REST API path to preload.
Returns:- (array) Modified reduce accumulator.
Defined at: - Introduced in WordPress: 5.0.0
- Deprecated in WordPress: —
Description
Append result of internal request to REST API for purpose of preloading data to be attached to a page.Expected to be called in the context of `array_reduce`.