Due to the nature of this update most object constructor signatures have been changed and will need to be updated Slugs are no longer generated automatically but required on object instantiation Meta boxes have been completely reworked (see documentation for more information) Now supports multiple fields per meta box Fixed saving for checkboxes Fields are created […]
The big change in this release is changing the View class’ render() method to be static. This means that instead of instantiating a view file and passing it into a WordPressObject you now pass the path to the view file and any view data in. This is not a backwards compatible change so any WordPressObject […]
I have extracted all the framework code so this project is now a simple boilerplate. Blank methods and an uninstall file are included to get you start. View the repository and download the source on GitHub.
The new version of my WordPress plugin framework as been released and is ready for use. New Features Meta box support Dashboard widget support Welcome panel support Object creation made simpler Check it out on GitHub.
I have written and released a library for creating .ics files in PHP. Version 1.0.0 of iCalendar Creator is now on GitHub and Packagist.
In a current project I needed to solve a problem where I wanted a class to only accept a set list of string values in a setter. In other languages you could use an enum to easily solve this. Unfortunately, PHP does not have anything like an enum natively. I needed to come up with […]
I have finished my initial collection of Puppet modules. You can check them here on the project page. A Vagrantfile for a Ubuntu 14.04 LTS box is included. To get up and running just add what modules you want to use in the main manifest file.
The framework has almost been completely rewritten with this release to make the creation of WordPress objects more strongly typed and automatic. WordPress objects now have supporting classes for arguments. This cuts down on having to type in optional parameters on construction. The Settings class now has supporting classes for SettingsSection and SettingsField. The View […]
A module is a collection of Puppet resource blocks that work together to carry out a related task. All the blocks are grouped together in a class that is included in your main manifest. This article will go through creating a very simple module for the Nginx web server. Step 1: File Structure Inside the puppet/modules […]
After finishing Part 2 we now have a working virtual machine ready to use. The only problem now is there is barely anything on it to use, it is just a basic Ubuntu install. At this point you normally go through the manual process of adding repositories, installing packages, setting up services, etc. Then if you […]