WP_Customize_Widgets::filter_customize_dynamic_setting_args() WordPress Method

This method is used to filter the arguments that will be passed to a dynamic setting. This can be used to change the arguments that are passed to a dynamic setting, or to create a new dynamic setting with custom arguments.

WP_Customize_Widgets::filter_customize_dynamic_setting_args( false|array $args, string $setting_id ) #

Determines the arguments for a dynamically-created setting.


Parameters

$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'].


Top ↑

Return

(array|false) Setting arguments, false otherwise.


Top ↑

Source

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

	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;
	}


Top ↑

Changelog

Changelog
VersionDescription
4.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More