Next Page Caching: A Whole New Way to Speed Up Your Site

This is a short entry. If you have a WordPress.org theme/plugin, here’s a single command to add all new files and remove all missing files in SVN: svn add `svn st|grep “^?”|awk ‘{print $2}’x` svn rm `svn st|grep “^\!”|awk ‘{print…
The add_action function is the main function to use when creating WordPress plugins. You mainly use it for executing code at various run time points within WordPress. With this function, you can create shortcodes, enqueue scripts, styles, modify post titles and contents…
Travis CI is great and we’re using a very (VERY) simple singular test that just checks whether or not Titan Framework encounters any activation errors. As of the moment we haven’t wrote any other detailed tests for Titan, and that…
Here’s one that had my head scratching for a while. We are currently developing a much-sought-after update for Carousel Anything, and it involves enumerating post types, taxonomies and terms. On a routine testing en route to being a candidate build,…
We needed to convert relative URLs to absolute URLs inside CSS files for our upcoming plugin Combinator. There are a lot of code floating online that partially worked. The one that was closest was from Here’s the reworked version…
When using the YouTube API, you are required to create the function onYouTubePlayerAPIReady. There is a huge problem with this. If you have multiple WordPress plugins that use the YouTube API, that means that you have multiple declarations of onYouTubePlayerAPIReady.…
This snippet will add a button on the admin bar: add_action( ‘admin_bar_menu’, array( $this, ‘addToggleButton’ ), 99 ); public function addToggleButton( $adminBar ) { $args = array( ‘id’ => ‘my_button’, ‘title’ => ‘My Button’, ‘href’ => ‘#’, ‘meta’ => array(…
There are a lot of existing ways to detect whether the browser is being used in a mobile device. You can use Modernizr to check for Touch support, check for whether Touch events are supported by the browser, or check…
Jetpack issue submitted: If you do this: $attachmentImage = wp_get_attachment_image_src( 1234, ‘full’ ); $url = $attachmentImage[0]; $width = $attachmentImage[1]; $height = $attachmentImage[2]; $width and $height should give out the image dimensions, but when Photon is activated, both don’t get returned.…