• A previous poster had this issue. Thought I’d share a solution

    function remove_heatmap_for_wl( $wp_admin_bar ){
     if( class_exists( 'heatmapWP' ) && is_user_logged_in() && is_admin_bar_showing() ){
      global $current_user;
      get_currentuserinfo();
       if( 9 > $current_user->user_level ){
        $wp_admin_bar->remove_node( 'heatmap-for-wp-bar' );
       }
      }
    }
     add_action( 'admin_bar_menu', 'remove_heatmap_for_wl', 1001 );
    
  • The topic ‘Showing heatmap button only to admins’ is closed to new replies.