Latest Snippets

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.

Snippet: Set maximum number of post revisions to avoid DB overhead

Revisions are stored as separate posts, the more revisions the more space they will take inside database. To avoid this database overhead there is a constant inside config file for maximum revisions.

Snippet: Remove the WordPress Version Info for Security Purposes

It is a healthy practice to remove unnecessary content from your wordpress website. Hide wordpress version from your website