You look at where the code sets the value of the email to the post author. For example the first code snippet in the post above sets the notification email to address using a hook. There is a line in that code snippet that looks like this:
$email_to = get_the_author_email();
You would change it so that instead of equaling the get_the_author_email(); function you would set it to equal the custom field value. So it would look something like this (this isn't exact as your custom field key may be different, etc.):
$email_to = get_post_meta($post->ID, 'CUSTOMFIELDKEY', true);
The code would have to go in your theme template file within your loop that outputs the post so you could output the custom field value.
Now again, my example above isn't the complete code snippet it is just an example of one line from the code snippets above.
Posted 14 years ago on Thursday July 1, 2010 |
Permalink