wp_delete_signup_on_user_delete()WP 5.5.0

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

Хуков нет.

Возвращает

null. Ничего (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.

Заметки

  • Global. wpdb. $wpdb WordPress database abstraction object.

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

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

Код wp_delete_signup_on_user_delete() WP 6.5.2

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

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