This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Capture CF7 data */ | |
add_action( 'wpcf7_mail_sent', 'wpcf7_capture_data' ); | |
function wpcf7_capture_data( $contact_form ) { | |
$submission = WPCF7_Submission::get_instance(); | |
if ( $submission ) { | |
$posted_data = $submission->get_posted_data(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Add this code to your functions.php | |
*/ | |
add_action('woocommerce_checkout_update_order_review', 'get_customer_details'); | |
function get_customer_details($post_data){ | |
global $woocommerce; | |
// Details you want injected into WooCommerce session. |
NewerOlder