get_theme_mod doesn’t return the theme customizer preview’s new values in after_setup_theme hook

To register my menus I usually use the init action hook, maybe you could try it.

add_action( 'init', 'pagespeed_register_menus' );

instead of

add_action( 'after_setup_theme', 'pagespeed_register_menus' );

Leave a Comment