active_callback for a core customizer control
-
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 ??
- The topic ‘active_callback for a core customizer control’ is closed to new replies.