Logged in user info Display and submit
-
hii i ma using this plugin because i don’t if user is logged in he fill the information in form all again only message he need to feel
example there are five filled name, contact no, comapany name and email id and message
i want if user is not logged in then this field look blank and then user fill this info and then send but if user logged in using this plugin that will fetch the userinfor and first four field already get filled if user want he might go for edit
for name : billing_first_name
comapny name : billing_company
phone no. : billing_phone
Email : billing_emaili am using [dynamictext dynamicname “CF7_get_billing_first_name”] this shortcode for to fetch the name but it’s not working also not working for email too [dynamictext dynamicname “CF7_get_user_email”] only for current username can be fetching with shortcode
[dynamictext dynamicname “CF7_get_current_user”]
i saw you are usin this function to make it’s workable
function cf7_get_current_user($atts){
extract(shortcode_atts(array(
‘key’ => ‘user_login’,
), $atts));global $current_user;
get_currentuserinfo();$val = $current_user->$key;
return $val;
}
add_shortcode(‘CF7_get_current_user’, ‘cf7_get_current_user’);can you tell me the similar script to fetch the below things
for name : billing_first_name
comapny name : billing_company
phone no. : billing_phone
Email : billing_email
- The topic ‘Logged in user info Display and submit’ is closed to new replies.