how to auto fille conatct form 7 when user is logined

you can do with jquery like: <?php global $current_user; get_currentuserinfo(); echo ‘Username: ‘ . $current_user->user_login . “\n”; echo ‘User email: ‘ . $current_user->user_email . “\n”; echo ‘User level: ‘ . $current_user->user_level . “\n”; echo ‘User first name: ‘ . $current_user->user_firstname . “\n”; echo ‘User last name: ‘ . $current_user->user_lastname . “\n”; echo ‘User display name: … Read more

How to get specific table by current user login

Note that you may need to use WPDB::prepare() to prevent against SQL injections. Although, it might be arguable in your specific case… // If the query does not work, ensure the table name is correct… $table = $wpdb->prefix . ‘SaveContactForm7_1’; $reservations = $wpdb->get_results( $wpdb->prepare( “SELECT * FROM $table WHERE user = %s”, $username ) ); … Read more

get/show Last ID

to have the ID, you can try this hook e.g. add_action(“save_post”, function ($post_ID, $post, $update) { if ( !$update && class_exists(“Flamingo_Inbound_Message”) && (Flamingo_Inbound_Message::post_type === $post->post_type) ) { // here $post_ID is the ID of the new created inbound message } }, 10, 3);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)