Blog

Watch those hook priorities

When adding an action or a filter to WordPress, the third parameter allows you to adjust priority. In this way, multiple bits of code can determine the order that they should execute without having to rely on the order that PHP actually parses them.

Generally, there are no minimums or maximum limits (other than those imposed by PHP itself) for priority, but there’s a very good reason to give consideration to when your code runs. Here’s an example:

Widget registration should be hooked to ‘widgets_init’ as in the following code:

function mytheme_register_widgets() {
  register_widget( 'Mytheme_Widget' );
}
add_action( 'widgets_init', 'mytheme_register_widgets' );

This is also the hook used internally by WordPress to take all the registered widgets and create a global array, $wp_registered_widgets. Specifically, this is in the WP_Widget_Factory class’s constructor function which is called once in wp-settings.php, immediately before the ‘setup_theme’ action hook.

Read More on Watch those hook priorities

10up opens up an office in Portland

We’re proud to formally announce the opening of our first office in Portland, Oregon this month. Portland has an incredible online media community, second only to mega-metropolises like New York City and San Francisco, without the high cost of living. As a distributed company, we find the best strategy, creative, WordPress engineering, and systems talent from across the United States. As it turns out, 5 of our 25 full-time employees live in the Portland metro area, with two more living just a three hour drive (or train ride!) away in greater Seattle.

10up Portland Office

In short, this expanding, thriving technology community is the perfect atmosphere for 10up to begin growing its distributed roots into brick and mortar hubs.

Our Portland team is excited to have a local hub, and anticipate working out of our office for more than half of their working hours. Other 10uppers from across the country have already expressed an eagerness to visit the office throughout the year.

Read More on 10up opens up an office in Portland

Report from ConvergeSE 2013

This past week I had the pleasure of attending ConvergeSE, a three-day web conference held annually in Columbia, South Carolina. Over 400 participants gathered to discuss and explore up-and-coming trends, technologies, and disciplines in web design and development. Speakers ranged from presidents of agencies, to Google employees, to house hold names in the design community.  It was intense content in a laid back atmosphere, between venue hopping in downtown Columbia, food carts lunches, and an art museum party. The event was hugely successful, and it’s easy to tell why just by looking at their speaker roster and the schedule of activities.

Build Responsively

Build ResponsivelyThe first day was split into three workshops that attendees pre-registered to attend. I signed up for the Responsive Web Design workshop, and couldn’t have been more amazed by the content we covered in just 6 short hours. Ben Callahan, our instructor, did a thorough job reviewing the three core techniques: a fluid foundation, flexible content, and media queries. Ben also described how responsive design shifted his company’s mindset away from linear timelines in favor of a continuing “push and pull” within each part of the process, with phased deliverables and releases.

The highlight was Mr. Callahan’s application of a preprocessor called SASS, which he uses to generate a single CSS file (improving performance) for visitors using older versions of Internet Explorer or modern browsers. Combing imports, a custom mix-in (written by his company), and some conditional tags, his approach generates a stylesheet with efficient, modern techniques like media queries served to modern browsers, and another stylesheet optimized for older browsers.

Ben wrapped up by reviewing design patterns arising as responsive web design gains popularity. It is truly amazing to watch the web mature as we transition from a desktop-centric experience to an increasingly mobile-centric audience.

Read More on Report from ConvergeSE 2013

Code with me: Digital Journalism

Code with me: Portland is a two day, student-mentor workshop that teaches journalists the foundations of coding in languages like HTML, CSS, and JavaScript. Founded by Sisi Wei and Tom Giratikanon, Code with me has been successful in Washington DC and Miami, and Code with me: Portland promises to be the biggest workshop yet, with 36 student and 22 mentors! With about two students to every mentor, the classes are very personal and hands-on. Between learning how to code, the journalists use mentor time to help with personal projects.

Portland’s organizer, a former WordPress.com VIP support engineer, helped organize the workshop and invited Jeremy Felt and me to be mentors. The mentors are talented and diverse, ranging from 10uppers and Automatticians to designers, developers, and editors from newspapers like the Seattle Times.

The primary goal of Code with me is to help journalists understand code so that they can better integrate into their work. Many of the attendees were inspired after reading the New York Times’s “Snow Fall”, a showcase for crafting and coding an online presentation around a single, great story. Snow Fall is a great example of how technology can enhance storytelling without restraining or complicating it.

Read More on Code with me: Digital Journalism

WordPress.com VIP, Global News talk redesign and 10up

Less than one month ago, Global News released a brand new website, engineered by 10up and hosted on WordPress.com VIP. With features like content tailored automatically to the visitor’s geolocation, highly curated home pages, and beautiful responsive design, we couldn’t be more proud to have been part of the Global News redesign team.  You can read more about our involvement by checking out our extended case study.

On Thursday, the WordPress.com VIP publisher blog posted a Q&A with Keith Robinson, Manager of Digital Products at Global News, where he took some time to highlight some of our contributions:

“10up helped us come up with a curation system that powers a lot of the site: the navigation, carousel, featured story, top story. It’s all one system that gives different choices.”

“We engaged with 10up in the fall to do the WordPress integration…we were very fortunate to hire some really top talent to work with us, and we’ve been working with really good partners.”

“10up brought a lot in terms of being able to listen to our needs and turn it into a functional site. They were great for us because we were at a stage where we needed things done very quickly and needed to discuss exactly what we were looking to do and how we were looking to do it–they helped us go from the discovery process to the implementation…we really benefited from the partnership and they were good to work with.”

You can read the full Q&A here.

Avatar photo

I’ll be attending WordCamp Reno-Tahoe this weekend, along with our Jake, our President. Jake will be presenting 10 Questions I Ask Every Developer – a guide to interviewing developers that touches on basic and advanced WordPress programming, along with some broad WordPress philosophy. I will debut Extreme Theme Makeovers, a presentation that demonstrates just how far design can be pushed with a child theme, even for beginning front end developers with minimal knowledge of HTML/CSS or WordPress. It’s my secret recipe for customizing a site on a budget (dollars and time). Hope to see you there!

WordSesh Archives: Watch Team 10up Anytime!

WordSesh 2013 may no longer be live, but you can keep learning by checking out the session recordings over on the WordSesh YouTube page!

If you missed it, WordSesh 2013 was the first ever free, live-streaming WordPress presentation venue. It ran uninterrupted for 24 hours on April 13th, 2013 (UTC), featuring a new session every hour on the hour. 10up was excited to be a part of WordSesh, with four presenters across three sessions! Now that the event is over, the organizers of WordSesh have archived all 24 hours worth of presentations. Each session has been separated into its own video, so you can browse their videos by presentation title.

Go below the fold to check out videos from Jake’s 10 Questions I Ask Developers, my (Christopher’s) Anywhere , Everywhere WordPress Themes, and Carl and Eric’s WordPress Javascript Hooks.

That should keep you busy while we eagerly WordSesh II!

Read More on WordSesh Archives: Watch Team 10up Anytime!

Summarizing the Summit

The Developer Summit was a few weeks ago, but our team is still buzzing. I asked a few my teammates to share their main take away from our first ever Developer Summit – here’s what they came back with:

Jake Goldman: There were so many highlights: learning from the smartest minds I’ve ever worked with about unit testing, advanced JavaScript, and Vagrant… seeing a great group of Portland-area WordPress pros show up at our social… seeing a few members of our team in person for the first time. The real highlight was being able to sit back and watch the team brainstorm the big process and technique questions we confront, so effectively. It’s one thing to have great “online” chemistry in IRC chat rooms, small video conferences, and status blogs, but it was amazing to see just how much chemistry this team has when we get together in person – more than any brick and mortar group I’ve ever led or been a part of.

Taylor Dewey: On the first day of our summit, only a few people had lunch together. On the second day of our summit, there were a few groups of folks in different spots. On the last day of our summit, everyone was eating lunch together in the same area. Seeing everyone come together organically proved that we actually do have a team, not a group of individuals, and that has tremendous value.

10up Summit Humor
Read More on Summarizing the Summit

10up and WordSesh: Free WordPress Presentations

If you ever wanted to learn about WordPress, but never had a chance to attend a WordCamp, now there’s an amazing opportunity to attend WordCamp-style lectures from home! It’s called WordSesh, and we’re proud to be a big part of it.

WordSesh

WordSesh 2013 is the first ever 24 hour free, live-streaming WordPress presentation venue. Starting at midnight UTC on April 13, 2013 (that’s 8:00 pm EST and 5:00 pm PST tonight, April 12) and running uninterrupted for 24 hours, WordSesh will feature a new session every hour, on the hour.

Read More on 10up and WordSesh: Free WordPress Presentations

Documentation

At our 10up Developer Summit, we collectively decided to document our workflow, tools, and process. With a handful of employees it’s easy to spread collective knowledge, but we’re growing fast and now have a need to document web technologies such as Vagrant, Git, and Grunt; who to contact and how to use our internal IRC channel; and how our staging servers are set up.

But who writes those docs, where do they go, and what should they look like?

Earlier this week I attended Write The Docs: a conference for technical writers that was created in the domain of software and web development. Many of the talks at this conference were devoted to who should write the docs. The consensus is that engineers compose technical documentation which is then edited by more experienced writers. Other presentations covered technical writing itself, careers, and documentation platforms.

Our code is well documented – and soon our internal processes will be too. Our engineers are already documentarians. The docs are being assembled in an internal WordPress-powered website and I’ve started the initial concept of a theme to make those docs easily readable and navigable.

If you’d like to help us write our docs, strategy, proposals, and emails, we are hiring web strategists.