[wp-hackers] Activation hook exist for themes?

Ozh ozh at planetozh.com
Sun Aug 30 12:13:46 UTC 2009


Last time I checked there was no such hook

A simple workaround is:
if ( is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) {
  // do your stuff
}

On Sun, Aug 30, 2009 at 2:08 PM, rajasekharan<websweetweb at gmail.com> wrote:
> Similar to register_activation_hook for plugins, do activation hooks exist
> for a themes in wordpress?
>



-- 
http://planetOzh.com ~ Blog and WordPress Stuff
http://FrenchFragFactory.net ~ Daily Quake News


More information about the wp-hackers mailing list