On this page
apply_filters( 'customize_dynamic_partial_class', string $partial_class, string $partial_id, array $partial_args )
Filters the class used to construct partials.
Description
Allow non-statically created partials to be constructed with custom WP_Customize_Partial subclass.
Parameters
$partial_classstring-
WP_Customize_Partial or a subclass.
$partial_idstring-
ID for dynamic partial.
$partial_argsarray-
The arguments to the WP_Customize_Partial constructor.
Source
File: wp-includes/customize/class-wp-customize-selective-refresh.php. View all references
$partial_class = apply_filters( 'customize_dynamic_partial_class', $partial_class, $partial_id, $partial_args );
Related
Used By
| Used By | Description |
|---|---|
| WP_Customize_Selective_Refresh::add_dynamic_partials() wp-includes/customize/class-wp-customize-selective-refresh.php | Registers dynamically-created partials. |
| WP_Customize_Selective_Refresh::add_partial() wp-includes/customize/class-wp-customize-selective-refresh.php | Adds a partial. |
Changelog
| Version | Description |
|---|---|
| 4.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/customize_dynamic_partial_class