wp_delete_signup_on_user_delete()WP 5.5.0

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

Хуков нет.

Возвращает

null. Ничего.

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

wp_delete_signup_on_user_delete( $id, $reassign, $user );
$id(int) (обязательный)
ID of the user to delete.
$reassign(int|null) (обязательный)
ID of the user to reassign posts and links to.
$user(WP_User) (обязательный)
User object.

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

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

Код wp_delete_signup_on_user_delete() WP 6.0.2

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

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