Support » Developing with WordPress » active_callback for a core customizer control

  • Andre

    (@andre-jutras)


    I’m working on a theme but something I’ve never done before is causing some head-scratching…

    I have an active_callback set for a few custom colour settings. Checking the checkbox will enable the custom settings (will then show the colour selectors).

    I moved the core background colour setting like this:

    $wp_customize->get_control( 'background_color' )->section   = 'my_preset_colours';
    $wp_customize->get_control( 'background_color' )->priority = 40;

    However, how can I get the core background_colour to have my active_callback:

    'active_callback' => 'my_custom_accent_colours_show',

    Hopefully the above makes sense 🙂

  • You must be logged in to reply to this topic.