Remove Jetpack menu when not connected on a WordPress Multisite subsite (individual blog)

By , September 16, 2014 7:20 am

I run my own decent sized WordPress Multisite with the Jetpack plugin enabled at the network level. This allows me to manage at a high level view all the Jetpack connected blogs from a single Jetpack connection. Not all the blogs need to be running Jetpack, however because Jetpack is enabled network wide all blogs see the Jetpack menu item. Because I manage the connection I do not want individual admins seeing the Jetpack menu unless it is connected.

I whipped up the following code, which will remove the menu if Jetpack is not connected (yes, the code says "active", poor wording choice in Jetpack itself) and individual blog admins are not allowed to manage their Jetpack connection.

  2. add_action( 'admin_menu', function() {
  3. $jpms = Jetpack_Network::init();
  5. if( !Jetpack::is_active() && !$jpms->get_option( 'sub-site-connection-override' ) ) {
  6. remove_menu_page( 'jetpack' );
  7. }
  8. }, 1000 );

New WordPress AlexaRank widget

By , September 13, 2014 11:46 am

For many years I have had an AlexaRank widget in the sidebar of this site. When the site was still small and was not running a bunch of additional functionality the previous AlexaRank plugin worked just fine, albeit slowly. Over time this site has gotten slower and slower (primarily due to all the assets Jetpack loads) and I have been doing some trimming.

While reviewing the code for the AlexaRank widget by fliptel that this site used to use I noticed that it is creating a new image file often and doing a bunch of resource intense things on each page load. It was taking about 2 seconds to load the widget. Unacceptable.

So I created my own...

Screen Shot 2014-09-13 at 12.41.41 PM

Try it for yourself at

This new AlexaRank widget is very simple. It uses the official AlexaRank widget. There is no user configuration as everything is configured automagically from site settings. The drop in load time has been dramatic, with this widget taking less than 200ms to load.

Take a look at the numbers from the P3 Profiler plugin

Screen Shot 2014-09-13 at 12.27.56 PM

2013 Macbook Air still has 16 hour battery a year later!

By , September 13, 2014 9:57 am

Macbook Air 16 hour batteryApple products continue to amaze me. I have a Macbook Air from 2013 that still holds a great charge. Check out this screenshot recently taken. It shows a 16 hour charge on a battery with 86% left!

Now this in not entirely typical. The time to battery depletion will change depending on what you are doing with the machine. In this case I think I only had the browser open and nothing else.

I work from coffee shops quite often and with the Macbook Air I no longer worry about carrying around a power cable with me wherever I go. The only time I have had power issues is when doing multiple long video conferences.

Go Apple!

Paper Sailboat Project: Vacationer by Kevin Green

By , September 13, 2014 9:46 am

Screen Shot 2014-09-13 at 10.36.04 AM

I am a bit sailboat obsessed. A couple years ago I ran across a neat craft project where you build a sailboat completely out of regular printer paper. As I was cleaning out my documents folder I found the instructions again and I am posting them here to share with you, also so there are kept alive somewhere online!

To build this paper sailboat all you have to do is print the diagrams and then cut out the shapes. If all the seams are sealed this boat will even float!

Paper Sailboat Build Instructions
Paper Sailboat Parts printout

Today I joined WebDevStudios!

By , September 8, 2014 8:06 am

Today I am pleased to announce that I have joined the WebDevStudios team as a Lead Developer.

Brad Williams mentioned to me several months ago that if I was ever looking for a change to think about joining his amazing team. At the time I was enjoying the lifestyle afforded by Automattic and working on the Jetpack project. As I interacted with other WebDevStudio employees (like the amazing Justin Sternberg) over the months they also said it would be fun to work together and last month I began to seriously consider taking Brad up on his offer. Working with WebDevStudios will put me back into a high level management role, and there are opportunities for upward growth. Something that is simply not found at Automattic with its flat corporate structure. WebDevStudios also gives back to the community in many ways. I highly respect the entire WebDevStudios leadership team and the company as a whole.

I am excited to begin a new journey and look forward to a long and rewarding time with Brad and his team!

See the announcement at

Theme by Blam Designs
Based on Themocracy

Add this ribbon to your WordPress website re-abolish slavery