customize_partial_render_(partial_id) filter-hook . WP 4.5.0
Filters partial rendering for a specific partial.
The dynamic portion of the hook name, $partial->ID refers to the partial ID.
Usage
add_filter( 'customize_partial_render_(partial_id)', 'filter_function_name_1230', 10, 3 ); function filter_function_name_1230( $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
customize_partial_render_(partial_id)
wp-includes/customize/class-wp-customize-partial.php 259
$rendered = apply_filters( "customize_partial_render_{$partial->id}", $rendered, $partial, $container_context );