Unyson
Unyson copied to clipboard
Customizer options: Add support for all setting args
https://github.com/ThemeFuse/Unyson/pull/1425
All these args must be supported, to be able to specify them in option array.
Please test
'option_id' => array(
'type' => 'text',
'wp-customizer-setting-args' => array(
// https://codex.wordpress.org/Class_Reference%5CWP_Customize_Manager%5Cadd_setting#Arguments
),
),
Note: You can't overwrite 'default' because here is
array_merge($custom_args, $default_args)
not vice versa
Left comments in commit.
Not sure if typo but you shouldn't array_merge $args_controls with $args_settings.
It was typo (fixed)