wp_delete_signup_on_user_delete( int $id, int|null $reassign, WP_User $user )

Deletes am associated signup entry when a user is deleted from the database.


Parameters

$id

(Required) ID of the user to delete.

$reassign

(Required) ID of the user to reassign posts and links to.

$user

(Required) User object.


Source

File: wp-includes/ms-functions.php

function wp_delete_signup_on_user_delete( $id, $reassign, $user ) {
	global $wpdb;

	$wpdb->delete( $wpdb->signups, array( 'user_login' => $user->user_login ) );
}


Changelog

Changelog
Version Description
WP-5.5.0 Introduced.