Redirect to homepage after logout

This tiny WordPress plugin redirects users to the homepage after logout instead of the login page. Handy if you have a WordPress site which has frontend interaction for users.

Rename wp-admin menu items

Ever wanted to rename wp-admin menu items in WordPress? You can by adding the following code to your theme’s functions.php file:

You can add multiple changes by copying this line and changing Dashboard and Home:
$menu = str_ireplace( ‘Dashboard’, ‘Home’, $menu );

Note: This will replace all references to Dashboard to Home so you could use this to rename other stuff. For instance, you can rebrand WooCommerce to DaanShop, which is way cooler ;)

Transcode video to H.264 mp4 for the Raspberry Pi with HandBrakeCLI

If you are like me, you probably have an aversion against repeated work. My movie library exists of hundreds of files and while preparing for the Raspberry Pi (which is capable of Full HD hardware H.264 decoding) I thought of automating video transcoding. The following how to or small tutorial is how I transcode video to H.264 mp4 for the Raspberry Pi with HandBrakeCLI.

This guide is for Mac OS X Lion but will probably also work on Leopard and Snow Leopard (not tested).

So, here is what I did:

[Read more...]

Do something after WooCommerce order completed with woocommerce_order_status_completed

If you want to do something after WooCommerce sets an order to completed you can hook into woocommerce_order_status_completed.

Here is a Gist with sample code:

Thanks to @mikejolley for the pointer :)

Responsive Design: Fluid Width Video

Excellent tutorial on fluid width video’s for responsive layouts or check out the demo.

Basically, RTFM and do this (replace “figure” with your fluid element):