customize_partial_render filter-hookWP 4.5.0

Filters partial rendering.

Usage

add_filter( 'customize_partial_render', 'wp_kama_customize_partial_render_filter', 10, 3 );

/**
 * Function for `customize_partial_render` filter-hook.
 * 
 * @param string|array|false   $rendered          The partial value.
 * @param WP_Customize_Partial $partial           WP_Customize_Setting instance.
 * @param array                $container_context Optional array of context data associated with the target container.
 *
 * @return string|array|false
 */
function wp_kama_customize_partial_render_filter( $rendered, $partial, $container_context ){

	// filter...
	return $rendered;
}
$rendered(string|array|false)
The partial value.
Default: false
$partial(WP_Customize_Partial)
WP_Customize_Setting instance.
$container_context(array)
Optional array of context data associated with the target container.

Changelog

Since 4.5.0 Introduced.

Where the hook is called

WP_Customize_Partial::render()
customize_partial_render
wp-includes/customize/class-wp-customize-partial.php 245
$rendered = apply_filters( 'customize_partial_render', $rendered, $partial, $container_context );

Where the hook is used in WordPress

Usage not found.