PHP started out as a simple language without a lot of the conventions of other C-like programming languages that make them challenging to learn and more difficult to write. Over time, as PHP matured, many of those features have been added as optional syntax. One example of this type of feature is type hinting. Type hinting gives you the ability to define the type of values that can be passed for each argument of a function or method. Type hinting is optional, but when used it forces parameters to be a certain type or an error is thrown. Doing so makes […]
Building a WordPress Plugin Part 3: Setting Up a Custom Content Type
In the second part of our series, we got ourselves off to a structured start by using the WordPress Plugin Boilerplate to erect some sensible scaffolding around our future code. By taking this approach, we were able to kick things off with a substantial amount of best plugin practices baked in for free. This time around, we’ll look at giving some of our future user-created content a home of its own in the back end by using a custom post type. This will give us an opportunity to take some baby steps in actually using the WordPress Plugin Boilerplate itself, and […]
Doc Pop’s WordPress News Drop: Stranger Themes
Doc’s WordPress News Drop is a weekly report on the most pressing WordPress news. When the news drops, I will pick it up and deliver it right to you. Doc Pop’s News Drop With so many WordPress themes out there, there are bound to be a few unusual finds. This week we talk about Pet Club, Bulldozer, and Marketify, just a few of the stranger themes you may encounter. Love WordPress news but hate reading? This is a Stranger Things inspired episode of Doc Pop’s News Drops. This week we are delving into the weird world of Stranger Themes. We’ve […]
Is Your Site Translation-Ready? Here’s How to Tell
Pop quiz: Out of the ten countries that search most often for “WordPress themes,” what’s the highest rank achieved by an English-speaking country? We’ll just tell you: it’s the United States, and it comes in 9th. In fact, the English-language version doesn’t even make up half of all WordPress core-file downloads. Of course, these facts shouldn’t be terribly surprising, since English is far from the most commonly-spoken language in the world. It’s third, behind Mandarin and Spanish. One reason why WordPress is so popular all around the globe is its availability in so many different languages. In 2014, the number […]
WordPress Product Launch UX Best Practices Part 6: Finishing A WP Welcome Page Boilerplate
In the final part of my six-part series on improving User Experience (UX) in a WordPress product launch, we will finish building a GPL-licensed WP Welcome Page boilerplate. You’ll be able to use it for any of your WordPress products. We have already built the base and the initializer files for our boilerplate. Now we will discuss the code for logic and look at the files that will safely redirect users to the welcome page at the backend and the welcome page itself respectively. Defining The Plugin Logic Having defined the set_transient() and delete_transient() functions in the initializer file, we […]

6 Comments