Skip to content
Docs
Get RestroPress

Action

rpress_anonymize_file_fooditem_log

Updated
On this page

Fires after the IP address of a file download log has been anonymized.

Runs in rpress_privacy_file_fooditem_logs_eraser() for each log entry of the customer, after the stored IP address was replaced with an anonymized one. Use it to clear any additional personal data stored with the log. The eraser processes the logs in pages of 25.

Available since RestroPress 2.9.2.

Parameters#

ParameterTypeDescription
$logWP_PostThe log post.

Example#

add_action( 'rpress_anonymize_file_fooditem_log', 'my_anonymize_log_meta', 10, 1 );
function my_anonymize_log_meta( $log ) {
	delete_post_meta( $log->ID, '_my_log_user_agent' );
}

Source#

Fired from:

  • includes/privacy-functions.php (line 1129), in rpress_privacy_file_fooditem_logs_eraser()

See also#

Was this page helpful?