Maintainable Ways to Set Up WordPress Hooks

What Are Hooks? In WordPress, we’re encouraged to use their hooks and filters. So what are they? Basically, they allow one to plug custom functionality into WordPress at predefined points of execution. I’m sure you’ve seen them; ever dealt with add_action(“init”, ‘setup_theme_plugins’); ? That’s a way of telling WordPress, “When you get to the ‘init’ […]

Laravel – Using View Creators to Make Default Values

What is a “View Model”? In web MVC architecture, there are scenarios you run into where you’d like the same set of dynamic information passed into each view, but that view isn’t called from one location. One such example is a menuing system. The items you pass into the navigation might potentially always be the […]

Importing a SQL File That is Too Big for PHPMyAdmin

Oh Noes! My Database is Bigger than the Upload Limit! Don’t worry! Here a neat little trick that helps you out. PHPMyAdmin can extract a couple of formats of compressed files, namely GZip, BZip2, and Zip. I’ve never had great luck with exporting from PHPMyAdmin as a compressed file, as PHPMyAdmin usually complains when I […]

Using Composer Dependencies in WordPress

Composer In this tutorial, I’m going to show you how you can add Composer Dependencies to your WordPress theme. Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs and it will install them in your project for you.  (https://getcomposer.org/doc/00-intro.md) Getting Started The first thing […]

Adding Bootstrap Panel Classes to Widgets

Bootstrap CSS Bootstrap is an awesome CSS framework that allows you to rapidly prototype web applications. It makes it easy to create components that look consistent and unify a website’s feel. Something lesser known about Bootstrap is that it’s just as good with prototyping websites; it provides you with a some simple tools that make […]

Writing a WordPress Plugin, Part 1

The Basics So you want learn about writing a WordPress plugin, eh? We’re going to cover the basics on how to write a WordPress plugin. It will be very limited in scope, since this is a tutorial. You can find working resources at the end of the posts. This post assumes you’ve already installed WordPress. Getting […]

How To Minify WordPress Scripts

What is Minification and Why Do I Need It? Minification is the process in which scripts and styles are compressed (and sometimes combined) to reduce the filesize. Take, for example, the following library (carhartl/jquery-cookie): /*! * jQuery Cookie Plugin v1.4.1 * https://github.com/carhartl/jquery-cookie * * Copyright 2006, 2014 Klaus Hartl * Released under the MIT license […]