[theme-reviewers] Theme Activation Hook
Towfiq I.
tislam100 at gmail.com
Thu Oct 24 08:30:47 UTC 2013
Are we allowed to use:
*if (is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" )
{**}*
*
*
*
*
*example:*
*---------------------
*if (is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" )
{
$option_default_values = array(
"block1_text_id" => "Lorem Ipsum",
"block1_textarea_id" => "Lorem Ipsum blah blah blah");
update_option('theme_options', $option_default_values);
}
--------------------------
if we are not, what should we use instead?
after_setup_theme doesnt work btw.
or should we use after_switch_theme?
Thanks
--
Towfiq I.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20131024/074550e5/attachment.html>
More information about the theme-reviewers
mailing list