Session-Support?
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Session-Support?’ is closed to new replies.