updated   : May 15, 2012
we now have 588 snippets
category user
By : , on February 15, 2012 9:00 am

Redirect based on user roles or capabilities

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you redirect users based on roles or capabilities.

read more
By : , on November 23, 2011 9:00 am

Remove admin color scheme options from user profile

wordpress snippet

This is an alternative method to the one I posted some time ago, “Remove admin color scheme picker from profile” Adding this snippet to the functions.php of your wordpress theme will remove the admin color scheme from the user profile.

read more
By : , on November 10, 2011 9:00 am

Send email notification when profile updates

wordpress snippet

I got a few emails asking about sending an email when a user simply updates the profile. Well here it is, adding this snippet to the functions.php of your wordpress theme will send an email notification to the user when the user profile updates.

read more
By : , on November 09, 2011 9:00 am

Display all subscribers in an unordered list

wordpress snippet

Adding this snippet to your wordpress theme will display all subscribers in an unordered list

read more
By : , on November 08, 2011 9:00 am

Send email notification when user role changes

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will send the member an email notification when the user’s role has changed.

read more
By : , on October 13, 2011 9:00 am

Display content based on user capability

wordpress snippet

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
By : , on October 07, 2011 9:00 am

Display avatar for currently logged in user with get_avatar

wordpress snippet

Adding this snippet to your wordpress template will display the currently logged in users avatar in your theme. To adjust the side of the avatar change the number 64 within the get_avatar function default is 96 and max size is 512.

read more
By : , on September 18, 2011 9:00 am

Display list of authors in a dropdown menu using wp_dropdown_users

wordpress snippet

Adding this snippet to your wordpress template will display a list of authors within a dropdown menu linking to their author profiles. I also excluded the default user ’1′ as the administrators would also be display. This is a comma separated list so you can remove any users that you don’t wish to display.

read more