Viewing 1 replies (of 1 total)
  • Thread Starter freshifreshy

    (@freshifreshy)

    Figured it out:

    if ( is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) {
    
    	add_option( $optname, $optval );
    
    }

    This will add an option when the theme is activated.

Viewing 1 replies (of 1 total)
  • The topic ‘Default Options for Theme Options Page’ is closed to new replies.