WordPress StrToTime Function

There is times that I am wanting to convert a time string and have it output in the sites timezone. This is a simple function that utilizes the DateTime class and implements the wp_timezone for its output. function wp_strtotime($str) { $datetime = new DateTime($str,...

WP pre_get_posts Usage

Using pre_get_posts can be very useful for optimizing a query on a looped page.  It allows you to add limitations or custom post types to the main WP query allowing you to do what you have been doing in two steps into one single step.  Here is one example of how to...

WP-Optimize – Purge cache and minify automatically

Sometimes there are files that can fill up your hosting account that are not needed. I did some looking for a way to have this auto clean these files. Not sure if this does it but I am hoping it does. add_filter( ‘wp_optimize_minify_cache_expiry_time', function(...

Yoast Descriptions and Visual Composer Resolution

So I ran into an issue where Yoast SEO was not auto-generating an excerpt for use within the Meta Description when a visual composer is being used.  When I say visual composer I mean like Divi or WP Bakery Visual Composer.  I was able to track down a filter that seems...

zPanel Webalizer Fix

If you are getting a blank page when trying to get to Webalizer from within zPanel you can edit the module.zpm file as follows.  Find the /etc/zpanel/panel/modules/webalizer_stats/module.zpm file and line 10 from : <div class=”zmodule_desc”...