wordpress snippets last updated   : April 14, 2014
we now have 629 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

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

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

Display comments in admin to authors own posts only

wordpress snippet

Only show the comments to the authors own posts within the wordpress admin, hide all other comments. This is a great little snippet if you want authors to look after their own comments. Just add this snippet to the functions.php of your wordpress theme and you are ready to go.

read more

Change default ‘Enter Title Here’ for custom post types

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you change default ‘Enter Title Here’ for custom post types. You will need to update the POST_TYPE name and default text

read more

Hide update nag within the admin

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will hide the update nag within the wordpress admin.

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