Title: active_callback for a core customizer control
Last modified: February 20, 2022

---

# active_callback for a core customizer control

 *  [Andre](https://wordpress.org/support/users/andre-jutras/)
 * (@andre-jutras)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/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.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 0 replies
 * 1 participant
 * Last reply from: [Andre](https://wordpress.org/support/users/andre-jutras/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/active_callback-for-a-core-customizer-control/)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
