wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_delete_signup_on_user_delete › WordPress Function

Since5.5.0
Deprecatedn/a
wp_delete_signup_on_user_delete ( $id, $reassign, $user )
Parameters: (3)
  • (int) $id ID of the user to delete.
    Required: Yes
  • (int|null) $reassign ID of the user to reassign posts and links to.
    Required: Yes
  • (WP_User) $user User object.
    Required: Yes
Defined at:
Codex:

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



Source

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

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