Title: customize_dynamic_partial_args
Published: April 12, 2016
Last modified: April 28, 2025

---

# apply_filters( ‘customize_dynamic_partial_args’, false|array $partial_args, string $partial_id )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/customize_dynamic_partial_args/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/customize_dynamic_partial_args/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/customize_dynamic_partial_args/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/customize_dynamic_partial_args/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/customize_dynamic_partial_args/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/customize_dynamic_partial_args/?output_format=md#wp--skip-link--target)

Filters a dynamic partial’s constructor arguments.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/customize_dynamic_partial_args/?output_format=md#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](https://developer.wordpress.org/reference/classes/wp_customize_partial/)
constructor.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/customize_dynamic_partial_args/?output_format=md#parameters)󠁿

 `$partial_args`false|array

The arguments to the [WP_Customize_Partial](https://developer.wordpress.org/reference/classes/wp_customize_partial/)
constructor.

`$partial_id`string

ID for dynamic partial.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/customize_dynamic_partial_args/?output_format=md#source)󠁿

    ```php
    $partial_args = apply_filters( 'customize_dynamic_partial_args', $partial_args, $partial_id );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/customize/class-wp-customize-selective-refresh.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/customize/class-wp-customize-selective-refresh.php#L235)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/customize/class-wp-customize-selective-refresh.php#L235-L235)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/customize_dynamic_partial_args/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Customize_Selective_Refresh::add_dynamic_partials()](https://developer.wordpress.org/reference/classes/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()](https://developer.wordpress.org/reference/classes/wp_customize_selective_refresh/add_partial/)`wp-includes/customize/class-wp-customize-selective-refresh.php` |

Adds a partial.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/customize_dynamic_partial_args/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.5.0](https://developer.wordpress.org/reference/since/4.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fcustomize_dynamic_partial_args%2F)
before being able to contribute a note or feedback.