Tag Archives: themes

activation hook for a theme in wordpress

I didn’t find any such type of hook. A simple workaround is: if ( is_admin() && isset($_GET[‘activated’] ) && $pagenow == “themes.php” ) { // do your stuff } Advertisements

Posted in WordPress | Tagged , , | 8 Comments