Created
June 15, 2021 18:05
-
-
Save max-kk/df680265bbae590619783beb894acfe3 to your computer and use it in GitHub Desktop.
This file contains 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 | |
//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