Action
rpress_delete_api_access_log
On this page
Fires after an API access log entry has been deleted by a privacy erasure request.
Runs in rpress_privacy_api_access_logs_eraser() for each log entry of the user, after wp_delete_post() has been called for it. Use it to remove related data stored elsewhere. The eraser processes the logs in batches until none remain.
Available since RestroPress 2.9.2.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$log | WP_Post | The log post that was deleted. |
Example#
add_action( 'rpress_delete_api_access_log', 'my_cleanup_api_log_data', 10, 1 );
function my_cleanup_api_log_data( $log ) {
delete_transient( 'my_api_log_' . $log->ID );
}
Source#
Fired from:
includes/privacy-functions.php(line 1205), inrpress_privacy_api_access_logs_eraser()
See also#
Was this page helpful?
