Created
          April 14, 2020 13:59 
        
      - 
      
 - 
        
Save jesseeproductions/28ced075dd7bdd1628d2af92dd57cbcf to your computer and use it in GitHub Desktop.  
    Tribe Show Latest Past Events 
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Disables on All Views | |
| add_filter('tribe_events_views_v2_show_latest_past_events_view', 'tribe_show_latest_past_events' ); | |
| // Disable for a Specific View ( replace month with list, day, map, photo, or week ) | |
| //add_filter('tribe_events_views_v2_month_show_latest_past_events_view', 'tribe_show_latest_past_events' ); | |
| /** | |
| * Filter to Hide the Latest Past Events | |
| * | |
| * @return bool Return false to disable the Latest Past Events | |
| */ | |
| function tribe_show_latest_past_events() { | |
| return false; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment