customize_partial_render WordPress Filter Hook

The customize_partial_render hook is used to render a partial template for a Customizer setting. This hook is called when the Customizer is rendering a partial for a setting. The partial template is passed to the hook as an argument, and the setting ID is also passed as an argument.

apply_filters( 'customize_partial_render', string|array|false $rendered, WP_Customize_Partial $partial, array $container_context ) #

Filters partial rendering.


Parameters

$rendered

(string|array|false)The partial value. Default false.

$partial

(WP_Customize_Partial)WP_Customize_Setting instance.

$container_context

(array)array of context data associated with the target container.


Top ↑

Source

File: wp-includes/customize/class-wp-customize-partial.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.