I’ve published my Enum class, formally available as a Gist, to Packagist. View the repository on GitHub.
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 […]
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 […]
I have refactored my WordPress Plugin Framework to be independent of the plugin boilerplate that I packaged with it. The classes for Pages, Settings, Custom Post Types, Taxonomies, and Views were extracted and updated. They can now easily be included and used in any plugin. I have also set the framework up as a Composer package. […]
I’m writing this article with the assumption that you know what AJAX is and does and you have a good idea of what you want to do with it. If you are not familiar with AJAX, let me Google that for you. Setting up AJAX calls in your WordPress themes and plugins can be confusing […]