[Plugin: Frontpage-Slideshow] Admin Option show to member !!?
-
I didnt know this problem until my friend told me when he tested some code.
Screenshot here: http://3.bp.blogspot.com/-YB17gwo_urU/Tj7cSWc_3pI/AAAAAAAAAvU/ZL0lbaagOAE/1312742485147.png
I take it by login on account with author role, all role can see this option.
To fix this error, i have put
if (current_user_can('manage_options')) { }in function frontpageSlideshow_admin_menu() {
And add this code beforeadd_action('admin_menu', 'frontpageSlideshow_admin_menu');if ( is_admin() )
So it’ve been like thatfunction frontpageSlideshow_admin_menu() { if (current_user_can('manage_options')) { add_options_page('Frontpage Slideshow', 'Frontpage Slideshow', 'edit_posts', 'frontpage-slideshow', 'frontpageSlideshow_admin_options'); } }if ( is_admin() ) add_action('admin_menu', 'frontpageSlideshow_admin_menu');It worked well for me now. It was a bug or may be i installed this plugin wrong way.
The topic ‘[Plugin: Frontpage-Slideshow] Admin Option show to member !!?’ is closed to new replies.