Description
The wpforms_conversational_forms_content_after
fires after a form is displayed on the site’s frontend, and the form was created with the Conversational Forms addon.
Parameters
This action does not accept any parameters.
More Information
The action only fires for forms created with the Conversational Forms addon. it executes after the output rendering process for forms created with the Conversational Forms addon.
An alternate action to consider is wpforms_conversational_forms_content_before
, as it functions similarly but will output before the form.
Source
wpforms-conversational-forms/templates/single-form.php
Examples
In this example, we’re going to display a link to the home page after displaying the form.
/**
* Output something after your Conversational Forms
*
* @link https://wpforms.com/developers/wpforms_conversational_forms_content_after/
*/
function wpf_dev_conversational_forms_content_after( ) {
// Run code or see example echo statement below.
_e( '<div class="home-wrapper">If you would like to check out our complete site, <a href="http://myexamplesite.com/" target="_blank">click here</a>.</div>', 'plugin-domain' );
}
add_action( 'wpforms_conversational_forms_content_after', 'wpf_dev_conversational_forms_content_after');
If you’re using this exact snippet, you may even want to add some CSS to your site. As an example, we’ve provided a CSS snippet as well.
.home-wrapper {
bottom: 50%;
position: fixed;
}