customize_render_partials_before хук-событие . WP 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.
Использование
add_action( 'customize_render_partials_before', 'action_function_name_6973', 10, 2 ); function action_function_name_6973( $this, $partials ){ // action... }
- $this(WP_Customize_Selective_Refresh)
- Selective refresh component.
- $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.
Список изменений
С версии 4.5.0 | Введена. |
Где вызывается хук
wp-includes/customize/class-wp-customize-selective-refresh.php 343
do_action( 'customize_render_partials_before', $this, $partials );