Skip to content

Instantly share code, notes, and snippets.

@max-kk
Last active May 28, 2016 13:32
Show Gist options
  • Save max-kk/650abfa81a9bb7ba50f97adbb8febaa6 to your computer and use it in GitHub Desktop.
Save max-kk/650abfa81a9bb7ba50f97adbb8febaa6 to your computer and use it in GitHub Desktop.
Add Description and Full desccription to User notify emails
<?php
add_filter( 'fv_user_mail_body', 'fv_filter_user_mail_body', 10, 2 );
function fv_filter_user_mail_body($body, $photo) {
$body = str_replace('{contestant_description}', $photo->description, $body);
$body = str_replace('{contestant_full_description}', $photo->full_description, $body);
return $body;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment