after_setup_theme WordPress Action Hook
The after_setup_theme hook is a great place to add your own custom functions and features to your Wordpress site. This hook is called after the theme has been setup, so it's the perfect place to add any code that you want to run on your site. You can use this hook to add your own custom post types, taxonomies, shortcodes, and more. This hook is also a great place to add any code that you want to run on your site before the theme is loaded.
do_action( 'after_setup_theme' ) #
Fires after the theme is loaded.
Contents
More Information
This hook is called during each page load, after the theme is initialized. It is generally used to perform basic setup, registration, and init actions for a theme.
Source
File: wp-settings.php
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |