首页 WordPress函数大全 rest_preload_api_request()

rest_preload_api_request()

2020-05-02 / 2477阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

rest_preload_api_request( array $memo, string $path )

将内部请求结果附加到REST API,以预加载要附加到页面的数据。

描述

预期在array_reduce的上下文中调用。

参数

$memo

(array)
(Required)
Reduce accumulator.

$path

(string)
(Required)
REST API path to preload.

返回

(array) Modified reduce accumulator.

大家谈论
    我的见解