WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Купить персональные IPV4 и IPV6 прокси
фильтр не описан

customize_dynamic_setting_args хук-фильтр . WP 4.2.0

Filters a dynamic setting's constructor args.

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.

Использование

add_filter( 'customize_dynamic_setting_args', 'filter_function_name_6926', 10, 2 );
function filter_function_name_6926( $setting_args, $setting_id ){
	// filter...

	return $setting_args;
}
$setting_args(false/массив)
The arguments to the WP_Customize_Setting constructor.
$setting_id(строка)
ID for dynamic setting, usually coming from $_POST['customized'].

Список изменений

С версии 4.2.0 Введена.

Где вызывается хук

WP_Customize_Manager::add_dynamic_settings()
customize_dynamic_setting_args
WP_Customize_Manager::add_setting()
customize_dynamic_setting_args
wp-includes/class-wp-customize-manager.php 3719
$setting_args = apply_filters( 'customize_dynamic_setting_args', $setting_args, $setting_id );
wp-includes/class-wp-customize-manager.php 3670
$args = apply_filters( 'customize_dynamic_setting_args', $args, $id );

Где используется хук (в ядре WP)

wp-includes/class-wp-customize-nav-menus.php 50
add_filter( 'customize_dynamic_setting_args', array( $this, 'filter_dynamic_setting_args' ), 10, 2 );
wp-includes/class-wp-customize-widgets.php 103
add_filter( 'customize_dynamic_setting_args', array( $this, 'filter_customize_dynamic_setting_args' ), 10, 2 );