WordPress.org

Forums

Google Plus
hide from dashboard role capabilities (1 post)

  1. AMBA
    Member
    Posted 2 years ago #

    tx for this plugin it work fine just one things
    the admin apears for every user
    if you want this hide and just u can see it in the dashboard you have to
    add this code in /google-plus-google/includes/hook.php line 33 in the gp_admin_menu() function :

    function gp_admin_menu()
    {
    	if ( !current_user_can( 'manage_options' ) )
    		return;
    
        add_menu_page('GP Dashboard', 'GP Dashboard', 0, 'gp_dashboard', 'gp_dashboard', GP_URL . '/img/admin-menu.png', 1);
        add_submenu_page('gp_dashboard', 'GP One', 'GP One', 0, 'gp_one', 'gp_one_settings');
    
    }

    best regards
    Amba

    http://wordpress.org/extend/plugins/google-plus-google/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic