Category Archives: Code Snippet

Comment Form Extra Field

Snippet: Add extra field in comment form

Add following snippet to “functions.php” Snippet Result

plugin updates

Snippet: Disable Updates: Both WordPress and Plugins

Add following snippet to “functions.php” Note: Disabling updates can cause security issues If there was any security hole that might be fixed in the update. If you disable the updates, you would not get it fixed. Snippet Result All plugin update notification get removed.

admin bar

Snippet: Show Admin bar to Administrator Only

Add following snippet to “functions.php” Snippet

Page Template

Snippet: Get Template of Current Page

Add following snippet to “functions.php” Usage Snippet

media upload

Snippet: Restrict Mime Types on WordPress Media Upload

Add following snippet to “functions.php” Snippet

featured image

Snippet: Set Featured Image Automatically If no Featured Image is present

Add following snippet to “functions.php” Snippet

welcome panel

Snippet: Hide Welcome Panel for WordPress Multisite

Add following snippet to “functions.php” Snippet