Last active
          January 28, 2022 22:13 
        
      - 
      
- 
        Save rafaehlers/97ecf9b90d987fe576a33d5ae8b90929 to your computer and use it in GitHub Desktop. 
    Add a title to the CSV exported file
  
        
  
    
      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 LINE | |
| add_filter('gfexcel_renderer_matrix', static function (array $rows) { | |
| // Make up the title | |
| $title = 'text'; | |
| // Wrap in array to become a row. | |
| $title = [$title]; | |
| array_unshift($rows, $title); | |
| return $rows; | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment