Created
          June 23, 2015 17:27 
        
      - 
      
 - 
        
Save SeanChDavis/aa873dcc063be82903fe to your computer and use it in GitHub Desktop.  
    Vendd filter - author info in single download sidebar
  
        
  
    
      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
    
  
  
    
  | // global | |
| add_filter( 'vendd_show_single_download_author_details', '__return_true' ); | |
| // download-specific | |
| function example_vendd_show_single_download_author_details( $show_author_details, $post ) { | |
| if ( $post->ID == 123 ) { | |
| $show_author_details = true; | |
| } | |
| return $show_author_details; | |
| } | |
| add_filter( 'vendd_show_single_download_author_details', 'example_vendd_show_single_download_author_details', 10, 2 ); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment