WordPress.org

Codex

Plugin API/Action Reference/switch theme

This page is marked as incomplete. You can help Codex by expanding it.

Contents

Description

switch_theme is triggered when the blog's theme is changed. If used in a theme, it only works if the theme that adds action is the one being disabled.

Usage

 <?php add_action('switch_theme''theme_deactivation_function'); ?> 

Related

See also