list of all availables infos * - [cipf_user_info user_email] -> display the email * - [cipf_user_info user_email user_login] -> display the email */ function current_user_infos_CIPF($atts) { if (!is_user_logged_in()) return ; error_log("----"); $current_user = wp_get_current_user(); $current_user_infos = $current_user->data; if (empty($atts)) { $user_properties = (array) get_userdata($current_user->ID)->data; $user_metas = get_user_meta($current_user->ID); $user_infos = array_merge($user_metas, $user_properties); $output = '