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 | |
// To the CF7 form add: | |
// [dynamic_hidden dynamichidden-cart "cart_contents"] | |
// In the CF7 Mail add: | |
// [dynamichidden-cart] | |
// The "cart_contents" uses this code | |
add_shortcode( 'cart_contents', 'dcwd_cart_contents' ); | |
function dcwd_cart_contents($atts, $content, $code) { | |
$cart_contents = array(); |