Created
          December 22, 2020 18:07 
        
      - 
      
- 
        Save rafaehlers/0b99373ad70037027668e0020d6e18bf to your computer and use it in GitHub Desktop. 
    Prevent DataTables from saving the sort information on the Browser's storage
  
        
  
    
      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
    
  
  
    
  | <?php // DO NOT COPY THIS LINE | |
| add_filter( 'gravityview_datatables_js_options', function( $dt_config, $view_id, $post ) { | |
| $dt_config['order'] = array(); | |
| $dt_config['stateSave'] = false; | |
| return $dt_config; | |
| }, 10, 3 ); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment