Created
          June 23, 2015 18:01 
        
      - 
      
- 
        Save SeanChDavis/8b1b16f486fbec19c7d1 to your computer and use it in GitHub Desktop. 
    Vendd filter - download version number
  
        
  
    
      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
    
  
  
    
  | // download-specific | |
| function example_vendd_version( $version, $download ) { | |
| if ( $download->ID == 123 ) { | |
| $version = '2.4.2'; | |
| } | |
| return $version; | |
| } | |
| add_filter( 'vendd_download_version', 'example_vendd_version', 10, 2 ); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment