Latest Snippets

Snippet: Display DB Queries, Time Spent and Memory Consumption

If you want to enable profiling inside your wordpress website to check db queries, and memory consumption then below code is just right for you

Snippet: Remove Default Widgets

If you are building your own wordpress theme and suddenly you realize that you need to remove all default widgets. Then below code is the right solution for you

Snippet: Remove some dashboard metabox(es)

By default Wordpress shows metaboxes inside its admin dashboard which include incoming links, plugin feeds and etc. If you want to disable them it can be easily done by using the below code.

Snippet: Change length of the excerpt

You can limit the number of characters of excerpt to display on page.

Snippet: Remove slef pings

When you link to your own post a self ping is generated by wordpress every time your post is viewed. You can easily avoid self pings by wordpress.

Snippet: Add excerpt box for pages

Excerpt is short extract from a post. If you want to display excerpt on your wordpress website page.

Snippet: Add Custom User Profile Fields

Although wordpress user profile has pretty much every thing inside it. But in case if you want to add your own field to user profile pages.