customize_render_partials_response
apply_filters( ‘customize_render_partials_response’, array $response , WP_Customize_Selective_Refresh $this , array $partials )
过滤器::过滤呈现部分的响应。
Filter Hook: Filters the response from rendering the partials.
说明(Description)
插件可以使用这个过滤器注入$scripts和$styles,它们是被呈现的部分的依赖项。响应数据将通过render partials response JS事件提供给客户机,因此客户机可以将脚本和样式注入DOM(如果它们尚未在DOM中排队)。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.5.0 | wp-includes/customize/class-wp-customize-selective-refresh.php:452 | 1 | 0 |
customize_render_partials_response 为WP2原创文章,链接:https://www.wp2.cn/hook/customize_render_partials_response/