setup_theme WordPress Action Hook
The setup_theme hook is fired after the theme is fully loaded and instantiated. This hook is the perfect place to do any last minute setup or configuration for your theme. For example, you could register custom post types ortaxonomies here.
do_action( 'setup_theme' ) #
Fires before the theme is loaded.