Snippets / PHP
PHP
Send Fluent Forms Entry to Post Author
D
Donald McGuinn
·
265 views
·
Updated 2 years ago
Insert this code into your site, then use the smartcode in the snippet and add it as a default field in a hidden field. Then add that field to the email notification settings.
/*
* Use default value in the editor as
* {embed_post_author_email}
* Then it will show the embeded post's author email
*/
add_filter('fluentform_editor_shortcode_callback_embed_post_author_email', function ($code) {
return get_the_author_meta('user_email');
});
PHP · 8 lines
Discussion 1
Ask a question or share how you used this.
Log in
to join the discussion.
In Love With Voxel
1 year ago
Placed the code to functions.php of child theme, went to fluent form, added a hidden field with Default Value: {embed_post_author_email} and Name Attribute: your_hidden_field_name / At the Email Notifications --> Send to Email field i entered: {your_hidden_field_name }. But it's not working.... Can you see any mistake ?