Allow Editors Access to Google Analytics Plugin
-
I’m trying to give editors access to edit Google analytics plugin page.
I found this way and this is my code:
if ( is_admin() ) { add_action( 'admin_menu', 'add_plugin_for_editors' ); } function add_plugin_for_editors() { if (!current_user_can( 'manage_options' )) { add_menu_page('Google Analytics Settings', 'Google Analytics', 'moderate_comments', 'pc_google_analytics_settings', 'Pc_Google_Analytics'); } }
When I login with editors and I saw Google analytics in panel, but It’s a blank page. How can I modify this code?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Allow Editors Access to Google Analytics Plugin’ is closed to new replies.