Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Customizer options: Add support for all setting args

Open ghost opened this issue 10 years ago • 3 comments

https://github.com/ThemeFuse/Unyson/pull/1425

All these args must be supported, to be able to specify them in option array.

ghost avatar Apr 08 '16 16:04 ghost

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

ghost avatar Apr 11 '16 10:04 ghost

Left comments in commit.

Not sure if typo but you shouldn't array_merge $args_controls with $args_settings.

NwpDeveloper avatar Apr 12 '16 23:04 NwpDeveloper

It was typo (fixed)

ghost avatar Apr 13 '16 07:04 ghost