¡Atención!

Este artículo contiene código PHP y está destinado a desarrolladores. Ofrecemos este código como cortesía, pero no proporcionamos soporte para personalizaciones de código o desarrollo de terceros.

Para obtener ayuda adicional, consulta el tutorial de WPBeginner sobre cómo añadir código personalizado.

Descartar

Descripción

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.

Parámetros

Esta acción no acepta ningún parámetro.

Más Información

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.

Origen

wpforms-conversational-forms/templates/single-form.php

Ejemplos

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');
you can output anything after a conversational form using the wpforms_conversational_forms_content_after action

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;
}