customize_render_partials_before

动作钩子


do_action( 'customize_render_partials_before', $this, $partials )
参数
  • (WP_Customize_Selective_Refresh)
    $refresh
    Selective refresh component.
    Required:
  • (array)
    $partials
    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.
    Required:
定义位置
  • wp-includes/customize/class-wp-customize-selective-refresh.php
    , line 344
引入
4.5.0
弃用

Fires immediately before partials are rendered.

Plugins may do things like call wp_enqueue_scripts() and gather a list of the scripts
and styles which may get enqueued in the response.

do_action( 'customize_render_partials_before', $this, $partials );