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

by Ashish Shrestha   Last Updated July 18, 2018 11:08 AM

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.

Related Questions

Wordpress Theme Development

Updated September 27, 2017 07:08 AM

Alignment Problem

Updated February 20, 2018 23:08 PM

Add a dropdown to theme customizer

Updated June 14, 2017 09:08 AM