do_action( 'after_setup_theme' )
Fires after the theme is loaded.
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
.
View all references
do_action( 'after_setup_theme' );
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
This Hook is called when each page is loaded after theme is initialised. This is used for the basic theme setup, registration of the theme features and init hooks. The basic use of this hook can be seen on the default themes that comes with WordPress Installation.
Following is the example code from twentyfifteen default theme.
This is how I try this and it’s works perfectly.
Themes can register their own editor colors and optionally lock users into picking from the defined palette.