[wp-hackers] checking roles in a plugin?

Mindshare Studios info at mindsharestudios.com
Fri Sep 7 01:53:41 GMT 2007

Hi -

How can you do a simple role check within a plugin before echoing some
content to the screen?

I'm trying to do something like this:

if (current_user_can('edit_posts')) {
	$var = 'sweet!';

But that isn't working at all. Any ideas?

Damian Taggart, President
Mindshare Studios, Inc.

More information about the wp-hackers mailing list