WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/check theme switched

Description

Checks if a theme has been changed and runs 'after_switch_theme' hook on the next WP load

Usage

<?php check_theme_switched(  ); ?>

Change Log

Since: 3.3

Source File

check_theme_switched() is located in wp-includes/theme.php