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

In this article

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

Parameters

$idintrequired
ID of the user to delete.
$reassignint|nullrequired
ID of the user to reassign posts and links to.
$userWP_Userrequired
User object.

Source

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

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

Changelog

VersionDescription
5.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.