Created
November 12, 2019 05:09
-
-
Save techjewel/ce7c802b97677505ae5b56c83b3d9820 to your computer and use it in GitHub Desktop.
Custom Smart Code in Fluent Forms Example - Author Email
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 | |
/* | |
* 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'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, i have a question about this. Is possible to get a field value from a selected post from CTP Selector?