[wp-hackers] Display page only to admin..
madalin
niladam at gmail.com
Sun May 17 08:10:29 GMT 2009
Thanks or your replies guys, but i decided to go with role-manager and
took use of:
if ( current_user_can('edit_plugins') ) {
// my content
}
Hope this helps anyone :)
On Sun, May 17, 2009 at 10:50 AM, mrmist <listswphackers at mist.org.uk> wrote:
> In message <505c639e0905162306h42ed916cs6b02f2cc211bd5ff at mail.gmail.com>,
> Daniel Cameron <dan at sproutventure.com> writes
>>>
>>> Is there anyway i could show a specific page only if the visitor is an
>>> admin ?
>>
>>
>> Would a "private" page work?
>>
>
> Should do. Otherwise you are looking at templating the page and checking
> for admin capabilities in the template (though that would only stop people
> seeing the actual page, not anything that relates to the page such as recent
> comments, etc.)
> --
> mrmist
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
Cu drag,
madalin
http://madalin.eu
http://lyrics.notme.org
http://www.tg-jiu.ro
http://www.radioomega.ro
More information about the wp-hackers
mailing list