Snippets Archive

Codes that are meant to be useful for others. Commercial use of my code strictly prohibited.

Conditional Loading of JavaScript

In WP there are many cases when you might need to use certain JavaScript library files. Whether you want to simply add a nice looking Slideshow or any other widget that requires JavaScript files, they tend to slow down the page loading time ...

Disabling all WordPress Update Notification

By default WordPress always pushes the core update notification through the admin panel. Even though I always recommend my customers to keep their WP up to date, there are times when these notification causes irritation ...

Dashicons for Custom Post Type Admin Menu

In the past I wrote how to register a custom post type in WordPress. If you go back to that post, you can see that I was using custom icon to use it as my Admin Menu icon for that custom post type ...

Display Post Format in WordPress Theme

In one of my earlier post, I showed how to add post format support for your theme. Using post formats allows users to use certain class that can be style anyway you want using simple CSS ...

Delete Unnecessary Post Metadata

By default every time you write or update any Post or Page in WordPress, it creates two very distinctive Post metadata ...

Simple Captcha Feature on WP Login Form

I wrote number of post on WordPress in this site and I am expecting to write whole lot more. Regardless of WP's growing popularity, security remains one of top most important topic to talk about ...