Adding the first snippet to the functions.php of your wordpress will let you display content base on user capability. Use the second snippet in your posts with the corresponding capability. View the codex for more information on capabilities Great little snippet By Justin Tadlock.read more
this months featured snippets
Do you require a more complex way to redirect users around your website when they login. This is a great method to use if you want to give your subscribers the ability to choose the page they are redirected to. You could provide visitors the option to redirect directly to their profile page or a custom settings page for your wordpress site. Adding this snippet to the functions.php of your wordpress theme will add a select menu to the login screen that will allow your users to choose where they would like to be redirected.
If redirecting based on role or capabilities is more your style take a look at this snippet.read more
Great little snippet that will display the total number of members within the Right now dashboard widget. Just add this to the functions.php of your wordpress theme and you are ready to go.read more
Adding this snippet to the functions.php of your wordpress theme will display a custom message on the user registration screen.read more
Adding this snippet to the functions.php of your wordpress theme will redirect the user to your homepage after they login.read more