Javascript & CSS customization is a staple of every
WordPress developer. This article tries to catalog the do’s and don’ts
of adding Custom Scripts and Stylesheets to WordPress.
An easy way to handle minimum system requirements in WordPress Plugins
WP-Requirements is nice little library that I extracted out of a few
plugins that I am writing. It allows a very easy way to manage both
checking for system requirements and displaying them to users.
Faster Jump To Core for WordPress Hooks
The WordPress Hooks Integration of WordPress.vim from 0.1.7 was mostly focused on the new ex-commands :Waction and :Wfilter and the CtrlP variants. These commands are quite smart. If your cursor is already on the action name they will take you to the invocation or listener position correctly. They fall back to using the word under […]
WordPress.vim gets WordPress Hooks Integration
WordPress.vim has been missing a very important feature so far, WordPress hooks integration. That’s like eating a Chicken Biryani minus the Chicken! It’s delicious but not quite the real thing. That’s no more the case! The 0.1.7 release adds some very cool new features to support WordPress Hooks. The demo below shows the new ex […]
WordPress.vim – A Vim Plugin for WordPress Development
A couple of weeks ago I had a tongue-in-check conversation with Mike Schinkel on Twitter about using Vim for WordPress development. PHP Storm had just released a preview of the next version of their IDE with improved support for WordPress. That conversation got me thinking about what it would take to build something similar for […]
Encase – A Lightweight IOC Container for PHP
My latest project is Encase. Encase is a lightweight IOC Container for PHP. It allows you to inject dependencies into your objects in an intuitive manner. The API is declarative yet small enough that you can easily master it in a couple of hours. The source code is MIT licensed and available on GitHub. The […]
7 Mistakes that cause the WordPress White Screen of Death
Most seasoned WordPress developers have seen their share of the WordPress White Screen of Death. But that doesn’t diminish the nerve-wracking ordeal that you will be facing in the next few hours trying to fix this. But what is this White Screen of Death? In a production website it is a recommended best practice to […]
Using WP_SITEURL and WP_HOME to migrate a WordPress site
If you have migrated a WordPress site before you will be familiar with the WordPress Constants, WP_HOME and WP_SITE_URL. These constants are the first solution mentioned on the migration guide on Codex.
These values determine how WordPress builds paths of your site. From theme assets paths to login pages, all depend on these values.
Building an Object-Oriented WordPress Plugin (xkcd-shortcode) – Part 5
At the end of Part 4, I hinted at an important problem with the design of this plugin. Every time a page with an embedded [xkcd] shortcode is requested, WordPress will need to expand the shortcode. This means for every such request you are hitting the XKCD.com servers to fetch the comic’s JSON.
Building an Object-Oriented WordPress Plugin (xkcd-shortcode) – Part 4
In Part 3 you built the XKCDShortcode class that takes parameters from the user input and generates HTML from it. Along with the XKCDLoader from Part 2 you can now wire up this plugin to WordPress’s Plugin API.