WordPress Activate Theme Action

There isn’t yet a WordPress activate theme hook. In the last week, it’s come up twice where WordPress.com Hosting VIP partners wanted some code to run once on theme activation.

It’s not an unusual scenario for our customers to create a new version of a theme, install it separately, and then activate it. Often this also allows reverting to the old version of the theme if something unexpected happens at launch.

In this scenario, it’s often easy to check for the existence of a new option, migrated, or other seed data, but sometimes you want to do something like:

global $pagenow;
if ( is_admin() && 'themes.php' == $pagenow && isset( $_GET['activated'] ) ) {
     // When theme is activated this code runs.
     // Still be defensive if you need to be, and check if
     // your baby is already born
}

Hat tip Frank Bültge.

Time.com Hiring WordPress Developer

Who says WordPress isn’t for the enterprise? for the Fortune 500? Not our long list of WordPress.com VIP Hosting customers obviously.

One of those customers, Time.com, is looking for a “Senior Front End WordPress Developer“.

*4+ years of PHP + MySQL development experience
*Experience with WordPress development, themes, plugins and other customizations
*Front-end markup experience with HTML, CSS and JavaScript
*Strong core PHP development experience
*Ability to work with and modify existing code
*Ability to develop applications from scratch
*Ability to work successfully in a team environment
*Ability to understand and work with people in a creative environment
*Strong attention to detail
*Ability to read and integrate third party API’s

Bonus is you’ll get to regularly collaborate with my team.