Skip to content

Instantly share code, notes, and snippets.

@max-kk
Created June 15, 2021 18:05
Show Gist options
  • Save max-kk/df680265bbae590619783beb894acfe3 to your computer and use it in GitHub Desktop.
Save max-kk/df680265bbae590619783beb894acfe3 to your computer and use it in GitHub Desktop.
<?php
//Example:
// USE a custom value: filter-id:fv-meta-email
add_action('fv/approve_photo', function($competitor_id, $admin_comment, $competitor) {
add_filter('notification/recipient/email/fv-meta-email', function($value) {
return $competitor->meta()->get_value( "meta_key" );
});
}, 10, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment