Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm wondering if it's possible to enable "CSS Classes" for Appearance > Menus by default when a theme (or a plugin) is activated?


function my_theme_activate_css_classes_for_menu(){
    // What would go here?
add_action( 'after_setup_theme', 'my_theme_activate_css_classes_for_menu' );

It should only happen once on theme activation.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.