On this page
apply_filters( 'customize_dynamic_partial_args', false|array $partial_args, string $partial_id )
Filters a dynamic partial’s constructor arguments.
Description
For a dynamic partial to be registered, this filter must be employed to override the default false value with an array of args to pass to the WP_Customize_Partial constructor.
Parameters
$partial_argsfalse|array-
The arguments to the WP_Customize_Partial constructor.
$partial_idstring-
ID for dynamic partial.
Source
File: wp-includes/customize/class-wp-customize-selective-refresh.php. View all references
$partial_args = apply_filters( 'customize_dynamic_partial_args', $partial_args, $partial_id );
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_args