• Resolved digo

    (@digo)


    Hey!
    Great plugin!

    Could you please add SESSION-Support?
    e.g. [dynamictext MyValue “CF7_SESSION key=’MySessionVar'”]

    /* Insert a $_SESSION variable */
    function cf7_session($atts){
    extract(shortcode_atts(array(
    ‘key’ => 0,
    ), $atts));
    $value = ”;
    if( isset( $_SESSION[$key] ) ){
    $value = urldecode($_SESSION[$key]);
    }
    return $value;
    }
    add_shortcode(‘CF7_SESSION’, ‘cf7_session’);

    Thanks!
    Digo

Viewing 1 replies (of 1 total)
  • Plugin Author sevenspark

    (@sevenspark)

    Hi Digo,

    Thanks for the suggestion, this is something we could look into in the future, but the beauty of it is that you can define any shortcocde you want and use it. So if you just drop that code in a custom plugin or your child theme’s functions.php, you can then use that shortcode in CF7 DTX. It doesn’t need to be in the plugin itself to work ??

Viewing 1 replies (of 1 total)
  • The topic ‘Session-Support?’ is closed to new replies.