customize_render_partials_response
最后更新于:2021-11-26 04:08:24
apply_filters( ‘customize_render_partials_response’, array $response, GC_Customize_Selective_Refresh $refresh, array $partials )
Filters the response from rendering the partials.
参数
- $response
-
(array)
Response.-
‘contents’
(array) Associative array mapping a partial ID its corresponding array of contents for the containers requested. -
‘errors’
(array) List of errors triggered during rendering of partials, ifGC_DEBUG_DISPLAY
is enabled.
-
‘contents’
- $refresh
-
(GC_Customize_Selective_Refresh)
Selective refresh component. - $partials
-
(array)
Placements’ context data for the partials rendered in the request. The array is keyed by partial ID, with each item being an array of the placements’ context data.
源文件
文件: gc-includes/customize/class-gc-customize-selective-refresh.php