Created
          July 6, 2016 13:59 
        
      - 
      
- 
        Save max-kk/66154a8d6f589cd8956630282ffe6df4 to your computer and use it in GitHub Desktop. 
    Change Video form title
  
        
  
    
      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 | |
| add_filter('fv_template_variables', 'fv_filter_upload_form_title', 10, 3); | |
| function fv_filter_upload_form_title($variables, $type, $template_path) { | |
| if ( !class_exists('FvAddon_Video') || $variables['contest']->type != FvAddon_Video::TYPE_VIDEO ) { | |
| return $variables; | |
| } | |
| if ( 'upload_form' == $type && isset($variables['public_translated_messages']) ) { | |
| $variables['public_translated_messages']['upload_form_title'] = 'Upload a video to contest'; | |
| } | |
| return $variables; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment