function vt_get_user_id() { $user_id = apply_filters('determine_current_user', false); wp_set_current_user($user_id); $user_id = get_current_user_id(); return $user_id; }
function vt_get_user_id() { $user_id = apply_filters('determine_current_user', false); wp_set_curren