W3cubDocs

/WordPress

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

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_args

(false|array) The arguments to the WP_Customize_Setting constructor.

$setting_id

(string) ID for dynamic setting, usually coming from $_POST['customized'].

Source

File: wp-includes/class-wp-customize-manager.php

View on Trac

Changelog

Version Description
4.2.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/customize_dynamic_setting_args