For my php file I have the following <?php /* Plugin Name: TSG Quform Values Plugin URI: http://koinonian.net Description: TSG Form values for Quform Version: 1.0 Author: Kevin Pudlo Author URI: http://koinonian.net License: GPL */
function tsg_userid($value) { if (is_user_logged_in()) { global $current_user; get_currentuserinfo(); $value = $current_user->user_id; }