How to add new args data in $wp_customize->add_setting?

What I’m trying to achieve is to add new args ( output ) as below:

‘modular_header_main_border_bottom_color’, array(
‘default’ => ‘#e9ecef’,
‘capability’ => ‘edit_theme_options’,
‘output’ => array(
‘element’ => ‘body’,
‘property’ => ‘background-color’,

And, get output array in front and enqueue it as a valid CSS. Till now,
I’ve tried achieve the same using customize_dynamic_setting_args hook which works fine in Customizer. But the problem is data from it is not accessible in frontend.

I guess there should be another way of doing same.

Read more here:: add_setting?” rel=nofollow>How to add new args data in $wp_customize->add_setting?

Leave a Reply

Your email address will not be published. Required fields are marked *