apply_filters( ‘customize_dynamic_setting_args’, false|array $setting_args, string $setting_id )

In this article

Filters a dynamic setting’s constructor args.

Description

For a dynamic setting 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_Setting constructor.

Parameters

$setting_argsfalse|array
The arguments to the WP_Customize_Setting constructor.
$setting_idstring
ID for dynamic setting, usually coming from $_POST['customized'].

Source

$setting_args = apply_filters( 'customize_dynamic_setting_args', $setting_args, $setting_id );

Changelog

VersionDescription
4.2.0Introduced.

User Contributed Notes

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