Categories
WordPress

WordPress Session Variables

Enable the use of session variables:

add_action( 'init', 'condless_activate_session', 1 );
function condless_activate_session() {
        if( ! session_id() ) {
                session_start();
        }
}

Leave a Reply

Your email address will not be published. Required fields are marked *