Skip to content

Instantly share code, notes, and snippets.

@techjewel
Created November 12, 2019 05:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techjewel/ce7c802b97677505ae5b56c83b3d9820 to your computer and use it in GitHub Desktop.
Save techjewel/ce7c802b97677505ae5b56c83b3d9820 to your computer and use it in GitHub Desktop.
Custom Smart Code in Fluent Forms Example - Author Email
<?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');
});
@Inge2neuromedia
Copy link

Hello, i have a question about this. Is possible to get a field value from a selected post from CTP Selector?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment