Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: customize_render_partials_before

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
335            * and styles which may get enqueued in the response.
336            *
337            * @since 4.5.0
338            *
339            * @param WP_Customize_Selective_Refresh $refresh  Selective refresh component.
340            * @param array                          $partials Placements' context data for the partials rendered in the request.
341            *                                                 The array is keyed by partial ID, with each item being an array of
342            *                                                 the placements' context data.
343            */
344           do_action( 'customize_render_partials_before', $this, $partials );
345
346           set_error_handler( array( $this, 'handle_error' ), error_reporting() );
347
348           $contents = array();
349
350           foreach ( $partials as $partial_id => $container_contexts ) {
351                $this->current_partial_id = $partial_id;
352
353                if ( ! is_array( $container_contexts ) ) {