WPDev.one
Core Function
View Source on Trac ↗

rest_preload_api_request()

rest_preload_api_request( mixed $memo, mixed $path )

Append result of internal request to REST API for purpose of preloading data to be attached to a page.

Parameters 2 required

Name / Type Description
$memo
array

Reduce accumulator.

Required
$path
string

REST API path to preload.

Required

Return Value

(array)
Modified reduce accumulator.

Function Information

Since Version
5.0.0
Source File
wp-includes/rest-api.php
Advertisement