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

In this article

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

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

Changelog

VersionDescription
4.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.