You appear to be a bot. Output may be restricted
Description
When a user requests that their personal data be removed, Akismet has a duty to discard any personal data we store outside of the comment itself. Right now, that is limited to the copy of the comment we store in the akismet_as_submitted commentmeta.
FWIW, this information would be automatically deleted after 15 days.
Usage
$array = Akismet_Admin::erase_personal_data( $email_address, $page );
Parameters
- $email_address
- ( mixed ) required –
- $page
- ( mixed ) optional default: 1 –
Returns
array
Source
File name: akismet/class.akismet-admin.php
Lines:
1 to 35 of 35
public static function erase_personal_data( $email_address, $page = 1 ) { $items_removed = false; $number = 50; $page = (int) $page; $comments = get_comments( array( 'author_email' => $email_address, 'number' => $number, 'paged' => $page, 'order_by' => 'comment_ID', 'order' => 'ASC', ) ); foreach ( (array) $comments as $comment ) { $comment_as_submitted = get_comment_meta( $comment->comment_ID, 'akismet_as_submitted', true ); if ( $comment_as_submitted ) { delete_comment_meta( $comment->comment_ID, 'akismet_as_submitted' ); $items_removed = true; } } // Tell core if we have more comments to work on still $done = count( $comments ) < $number; return array( 'items_removed' => $items_removed, 'items_retained' => false, // always false in this example 'messages' => array(), // no messages in this example 'done' => $done, ); }