WordPress at a glance
function is not described

WP_Customize_Widgets::filter_customize_dynamic_setting_args() public WP 4.2.0

Determines the arguments for a dynamically-created setting.

{} It's a method of the class: WP_Customize_Widgets{}

No Hooks.


Array|false. Setting arguments, false otherwise.


$WP_Customize_Widgets = new WP_Customize_Widgets();
$WP_Customize_Widgets->filter_customize_dynamic_setting_args( $args, $setting_id );
$args(false|array) (required)
The arguments to the WP_Customize_Setting constructor.
$setting_id(string) (required)
ID for dynamic setting, usually coming from $_POST['customized'].


Since 4.2.0 Introduced.

Code of WP_Customize_Widgets::filter_customize_dynamic_setting_args() WP 5.7.2

public function filter_customize_dynamic_setting_args( $args, $setting_id ) {
	if ( $this->get_setting_type( $setting_id ) ) {
		$args = $this->get_setting_args( $setting_id );
	return $args;