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.


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.


Top ↑

Source

File: wp-settings.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.