wordpress snippets last updated   : July 14, 2014
we now have 634 snippets

Exclude pages from admin edit pages list

wordpress snippet

This is a great little snippet that will exclude pages based on the the ID from the admin pages list. Just add this snippet to the functions.php of your wordpress theme and update the array with the page ID’s you wish to hide. Please note this does not stop a post from being editable this snippet only hides the page from view.

read more

Force specific pages to be secure, ssl, https

wordpress snippet

You can easily force specific pages to be secure in wordpress using the following simple little snippet. Just add the following snippet to the functions.php of your wordpress theme and specify the post / page ID desired.

read more

Remove / unset URL field from comment form

wordpress snippet

Removing the URL field from your comments form is a simple snippet just add this code to the functions.php of your wordpress theme to remove the URL / website field.

read more

Display $hook_suffix as admin notice

wordpress snippet

When developing in wordpress you may have a need for the hook_suffix that can later be used to register a hook called on a particular page load-hook_suffix. Just add this wordpress snippet to the functions.php of your wordpress theme and enable and disable as needed when working on a project.

read more

Remove buttons from add media popup

wordpress snippet

Run into this snippet not to long ago that will let you remove every button from add media popup. This will remove all but the delete button from the media popup so have fun and enjoy.

read more

Redirect admin pages to any location

wordpress snippet

Redirecting the admin pages was something I needed to do for a recent project. The following snippet will let you redirect any of the admin pages to any location you wish based on the user ‘capability’. Another option would be to replace wp_redirect with wp_die(“some custom message”); to display a message instead of redirecting.

read more
jqsnipp.com | we just launched jquery snippets website