Hey everyone,
I've got a handy snippet here that can be used to activate a theme and set a purchase code in WordPress. This can be particularly useful if you're dealing with themes that require activation via a purchase code. Here's the code
$mytheme = get_template();
update_option(...