Dynamic WordPress WP_Widget generator

Here is an example of generating multiple WP_Widget instances from an array. This is available from WP 4.6.0 when it became possible to pass an instance of WP_Widget into register_widget(); Here is the sample widget array config:   And here are the generated widgets:     Code over here: https://github.com/dtbaker/dynamic-wordpress-widgets

Our ‘Beautiful’ Theme Chosen for Managed Hosting Trial

So lucky to be one of only twelve WordPress themes selected for a new service provided by ThemeForest.  You can now have Envato, install, setup and host ANY of our WordPress themes for you. They will provide all the support and backups of your website. Envato Hosted is great service for beginners who aren’t sure where […]

jQuery Timepicker with unix epoch

The jQuery UI Timepicker is pretty cool. Adds a nice little time selector under the existing jQuery Date Picker calendar. I needed to read/write timestamps from fields like this: <input type=”text” name=”something” class=”date_time” value=”1477569840″> So I came up with this simple solution: $(‘.date_time’).each(function(){ // create a new hidden field for our epoch time storage. // copy […]

WordFence blocking 3rd party PHP scripts

Ok so this was a mind bender. Installed WordFence in the main website. Works great. Went to use a completely different PHP script that was hosted on a different subdomain. Nope! WordFence firewall popped up blocking the action (I was submitting a form with some URLs in it) What the hell? How does a WordPress plugin on a […]