Skip to content

Instantly share code, notes, and snippets.

@max-kk
Created July 6, 2016 13:59
Show Gist options
  • Save max-kk/66154a8d6f589cd8956630282ffe6df4 to your computer and use it in GitHub Desktop.
Save max-kk/66154a8d6f589cd8956630282ffe6df4 to your computer and use it in GitHub Desktop.
Change Video form title
<?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