Plugin Development 101 – Separating Your Plugin into Multiple Files | Pippins Plugins

In part 3 we discussed the general best practice of separating your plugin out into multiple files. Today we’re going to look at how you actually do that and also go into more depth about why this is a good practice that you should be adopting for all of your plugins once they begin to become even remotely complex.

Read more ›

The WordPress Coding Standards: The Ternary Operator and Yoda Conditions

In this particular article, I thought we’d take it a bit easier before jumping into the final topic. As such, we’re going to cover two really simple topics (that are often either ignored or overcomplicated).

Specifically, we’re going to talk about the ternary operator and we’re going to talk about Yoda conditions.

When it comes to writing WordPress-based code, the Coding Standards strictly say that we should aim for readability first.

Read more ›

GenerateWP.com – Useful WordPress Code Generators

Who doesn’t love a good code generator for WordPress? GenerateWP.com should definitely be added to your list of bookmarked resources as the site provides a number of different generators for common tasks such as WP-Config file, sidebars, custom post types, menus, and more. Best of all, the code generated from this website meets the WordPress coding standards. Rami Yushuvaev did a great job with the site. I’m curious to know how many of you have used the code generated by his website in your own projects or do you mostly write your own code from scratch? What other types of WordPress generators would you find useful?

Read more ›

WordPress Plugin Prices Are Too Low

I’ll admit it, I’m on a mission. Just like you are. Only mine is righteous and yours is evil. Ok, maybe that’s a bit extreme.

I spend my afternoons and evenings working with startups, and these days many of them are in the WordPress community. It’s easier for me that way – there’s more natural consolidation and alignment than if my coaching were with other startups and I still spent time writing and using WordPress.

In just about every call I’ve had in the last two weeks, I’ve noticed a trend. It’s a scary one.

Read more ›

When should you NOT release premium WordPress plugins?

If you’ve spent a lot of time on my site, you know I like to write about new product development and WordPress. I also write about pricing. So you might easily come to the conclusion that I would be completely behind the business dynamic of always selling premium WordPress plugins. Guess what? You’d be wrong.

When I write “premium WordPress plugins” I’m simply talking about a plugin you charge for. And when I say you’d be wrong, I’m saying that I don’t always believe monetizing the plugin itself is the right course of action.

Read more ›

Storing Session Data in WordPress without $_SESSION

Cookie

The term Session in web development refers to a general method of storing semi-permanent data, such as user logins, user interactions, ecommerce shopping carts, and many other examples. PHP has a system called $_SESSION, which is exceptionally simple to use, but has same major draw backs, including security issues, and intermittent support across server environments. A few months ago, Eric Mann introduced WP_Session; a new library that provides a session data storage system that has the simplicity of $_SESSIONs but without many of the drawbacks.

Read more ›

Your WordPress Skills Can Change The World

You’re a talented WordPress developer or designer. Let’s be honest, you’re pretty popular these days. You’ve got skills that are needed far and wide. The only question is: How will you use them?

How about saving the world? I’m only kind of overstating it. The fact is, thousands of nonprofits are tackling our country’s biggest challenges and doing incredible work to improve their communities. But…they have few resources at their disposal.

At Taproot Foundation, we engage the nation’s professionals to use their talents pro bono to support organizations like these that are focused on social change. The number one request we get from nonprofits is for pro bono support to build a new website.

Read more ›

The WordPress Coding Standards: Single Quotes and Double Quotes

In this series, we’re taking a look at the WordPress PHP Coding Standards in order further understand how quality WordPress code should be written.

Sure, all of this is documented in the WordPress Coding Standards and it’s a site that every WordPress developer should have bookmarked and on hand when working on a theme, a plugin, or an application; however, if you’re just getting into WordPress development, then it’s important to understand the rationale as to why the conventions are the way they are.

In this article, we’re going to be taking a look at the use of single quotes and double quotes specifically when dealing with strings.

Read more ›

Resources For Learning Git

GIT

Git is an extremely powerful and sophisticated system for distributed version control. Apart from offering a novel approach to source code management, Git offers a great deal of features. Sadly, learning how to use Git can be confusing for anyone, not just beginners. As a result, in this roundup, we have collected some of the best resources for learning Git to help you initially get started with Git, and then, eventually mastering it.

If you are looking for a quick resource to help you get started with Git, this one by Roger Dudler will prove really useful to you. It will help you setup Git as well as give you the ability to experiment with it. Definitely worth checking out!

Read more ›

The WordPress Coding Standards: An Introduction

But this raises the question: What’s the point of an API or formal coding standards if we’re simply going to ignore them?

We’ve written quite a bit about the WordPress APIs in previous articles, and we’ve touched on the WordPress Coding Standards, but we’ve never really taken a deep dive into the coding standards, understanding each aspect of them, and why they matter.

So in this series, we’re going to be doing just that.

Read more ›