Index: src/wp-includes/functions.php
===================================================================
--- src/wp-includes/functions.php	(revision 42887)
+++ src/wp-includes/functions.php	(working copy)
@@ -6127,3 +6127,49 @@
 		), $email_change_email['message'], $email_change_email['headers']
 	);
 }
+
+/**
+ * Return uniform "anonymous" data by type.
+ *
+ * @since 5.0.0
+ *
+ * @param  string $type Optional The type of data to be anonymized.
+ * @return string                The anonymous data for the requested type.
+ */
+function wp_privacy_anonymize_data( $type = 'text' ) {
+
+	switch ( $type ) {
+		case 'email':
+			$anonymous = 'deleted@example.test';
+			break;
+		case 'url':
+			$anonymous = 'http://example.test';
+			break;
+		case 'ip':
+			$anonymous = '0.0.0.0';
+			break;
+		case 'date':
+			$anonymous = 0;
+			break;
+		case 'text':
+			/* translators: deletd text */
+			$anonymous = __( '[deleted]' );
+			break;
+		case 'longtext':
+			/* translators: deleted long text */
+			$anonymous = __( 'This content was deleted by the author.' );
+			break;
+		default:
+			$anonymous = '';
+	}
+
+	/**
+	 * Filters the anonymous data for each type.
+	 *
+	 * @since 5.0.0
+	 *
+	 * @param string $anonymous Anonymous data.
+	 * @param string $type      Type of the data.
+	 */
+	return apply_filters( 'wp_privacy_anonymize_data', $anonymous, $type );
+}
