wp_privacy_personal_data_erased хук-событиеWP 4.9.6

Fires immediately after a personal data erasure request has been marked completed.

Использование

add_action( 'wp_privacy_personal_data_erased', 'wp_kama_privacy_personal_data_erased_action' );

/**
 * Function for `wp_privacy_personal_data_erased` action-hook.
 * 
 * @param int $request_id The privacy request post ID associated with this request.
 *
 * @return void
 */
function wp_kama_privacy_personal_data_erased_action( $request_id ){

	// action...
}
$request_id(int)
The privacy request post ID associated with this request.

Список изменений

С версии 4.9.6 Введена.

Где вызывается хук

wp_privacy_process_personal_data_erasure_page()
wp_privacy_personal_data_erased
wp-admin/includes/privacy-tools.php 967
do_action( 'wp_privacy_personal_data_erased', $request_id );

Где используется хук в WordPress

wp-admin/includes/admin-filters.php 154
add_action( 'wp_privacy_personal_data_erased', '_wp_privacy_send_erasure_fulfillment_notification', 10 );