WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
251 | * The dynamic portion of the hook name, `$partial->ID` refers to the partial ID. |
252 | * |
253 | * @since 4.5.0 |
254 | * |
255 | * @param string|array|false $rendered The partial value. Default false. |
256 | * @param WP_Customize_Partial $partial WP_Customize_Setting instance. |
257 | * @param array $container_context Optional array of context data associated with |
258 | * the target container. |
259 | */ |
260 | $rendered = apply_filters( "customize_partial_render_{$partial->id}", $rendered, $partial, $container_context ); |
261 |
|
262 | return $rendered; |
263 | } |
264 |
|
265 | /** |
266 | * Default callback used when invoking WP_Customize_Control::render(). |
267 | * |
268 | * Note that this method may echo the partial *or* return the partial as |
269 | * a string or array, but not both. Output buffering is performed when this |