Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Plain Text by contact7 thanku ( 13 years ago )
== archivo wp_config.php ==
// Agregar al final
/** * Enable sessions */
if (!session_id()) session_start();
== archivo functions.php ==
// Agregar esto al principio
add_action( ‘wpcf7_before_send_mail’, ‘set_sessions’ );
// A continuación
// menú-848 es el id del dato que se quiere mostrar
// si se quiere saber que datos se esta enviando
// usar
// print_r($cf7->posted_data);
// con eso mostrara todos los campos y se usa el que se quiera mostrar
function set_sessions($cf7){
$_SESSION['formdata'] = $cf7->posted_data['menu-848'];
return false;
}
// Para usar la variable en el template
// Nota hacer print_r si se quiere saber los contenidos de la variable _SESSION
<?php echo $_SESSION['formdata'] ?>
Revise this Paste