GC_Customize_Widgets::filter_customize_dynamic_setting_args()
最后更新于:2021-11-27 10:17:05
GC_Customize_Widgets::filter_customize_dynamic_setting_args( false|array$args, string$setting_id)Determines the arguments for a dynamically-created setting.
参数
- $args
-
(false|array) (Required) The arguments to the GC_Customize_Setting constructor.
- $setting_id
-
(string) (Required) ID for dynamic setting, usually coming from
$_POST['customized']
.
响应
(array|false) Setting arguments, false otherwise.
源文件
文件: gc-includes/class-gc-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;
}