Created
          June 23, 2015 17:59 
        
      - 
      
- 
        Save SeanChDavis/c94b3f6d1db81624aaf7 to your computer and use it in GitHub Desktop. 
    Vendd filter - download license state
  
        
  
    
      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_is_licensed( $is_licensed, $download ) { | |
| if ( $download->ID == 123 ) { | |
| $is_licensed = true; | |
| } | |
| return $is_licensed; | |
| } | |
| add_filter( 'vendd_download_is_licensed', 'example_vendd_is_licensed', 10, 2 ); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment