(aquascript) Account details

IELTS Correction codes Account details Writing blog Answer-keys

You must be logged in to edit your profile.


[insert_php]
global $current_user;
get_currentuserinfo();

/** echo ‘Username: ‘ . $current_user->user_login . “\n”;
echo ‘User email: ‘ . $current_user->user_email . “\n”;
echo ‘User first name: ‘ . $current_user->user_firstname . “\n”;
echo ‘User last name: ‘ . $current_user->user_lastname . “\n”;
echo ‘User display name: ‘ . $current_user->display_name . “\n”;
echo ‘User ID: ‘ . $current_user->ID . “\n”;
*/
echo ‘‘ . $current_user->user_firstname . “, these are your comments to date:

“;

$args = array(
‘user_id’ => $current_user->ID, // use user_id

);
$comments = get_comments($args);
foreach($comments as $comment) :
echo($comment->comment_content . ‘
Posted on: ‘ . $comment->comment_date . ‘in reply to: ‘ . $comment->comment_post_ID . ‘


‘);
endforeach;

[/insert_php]

You will need to be logged in to view and change these details