Using the WordPress apply_filters Function for Dynamic Content
In a WordPress plugin you can filter many values including the title and content of a post using: add_filter('the_content', 'MyPluginClass::FilterTheContent'); This is pretty handy, but sometimes when you’re writing a WordPress theme you want to allow plugins to add content, not just filter the usual content. Using apply_filters makes this pretty easy because you can call apply [...]
The Real Development Life Cycle
One reason I really wanted to run my own business was to be able to do business and live my life honestly. I have a very honest way of working with my customers, they know I can only give so much time and it may take some time to get what they want. But it [...]
WordPress and PHP have Poor Support for Dates and Time Zones
Today I spent way too much time figuring out how to convert dates and times to different time zones. PHP can barely do it, and WordPress really doesn’t do anything to make it easier. I would love it if someone would just create a simple function like this: $string = format_gmt_time_for_time_zone( 'l, F [...]
Swift Mailer: Awesome PHP Mailer
Tonight was the first time that I needed to write some code for a business that would send email to customers, or at least email that needed to be reliable and feature rich. I looked at the documentation for the PHP mail function and after a lot of reading realized it was not going to [...]