Hello,
The problem is a bit more complexe than it looks. The thing is, with ACF Extended Dynamic Forms you can create as many actions as you want for each form submission. Which means you can theorically create “150 new posts” in one single submission and then at the end “Send an email”.
In this case, it’s difficult to give you a tool in the UI to choose which “post URL” should be included in the last email.
You could send a custom mail using PHP only when your “New post” action get completed you could using the following code:
add_action('acfe/form/submit/post/form=my-form', 'my_form_post_save', 10, 5);
function my_form_post_save($post_id, $type, $args, $form, $action){
/**
* @int $post_id The targeted post ID
* @string $type Action type: 'insert_post' or 'update_post'
* @array $args The generated post arguments
* @array $form The form settings
* @string $action The action alias name
*/
$created_post_id = $post_id;
// wp_mail() ...
}
BTW, in a future update I plan to add {query_var:my_var}
template tag that will be available in the email action. This way you could set_query_var()
during the post creation, and re-use it directly in the “e-mail action” UI ??
Regards.