Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: customize_partial_render_{$partial->id}

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
250            * The dynamic portion of the hook name, `$partial->ID` refers to the partial ID.
251            *
252            * @since 4.5.0
253            *
254            * @param string|array|false   $rendered          The partial value. Default false.
255            * @param WP_Customize_Partial $partial           WP_Customize_Setting instance.
256            * @param array                $container_context Optional array of context data associated with
257            *                                                the target container.
258            */
259           $rendered = apply_filters( "customize_partial_render_{$partial->id}", $rendered, $partial, $container_context );
260
261           return $rendered;
262      }
263
264      /**
265       * Default callback used when invoking WP_Customize_Control::render().
266       *
267       * Note that this method may echo the partial *or* return the partial as
268       * a string or array, but not both. Output buffering is performed when this