wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_delete_signup_on_user_delete › WordPress Function

Seit5.5.0
Veraltetn/v
wp_delete_signup_on_user_delete ( $id, $reassign, $user )
Parameter: (3)
  • (int) $id ID of the user to delete.
    Erforderlich: Ja
  • (int|null) $reassign ID of the user to reassign posts and links to.
    Erforderlich: Ja
  • (WP_User) $user User object.
    Erforderlich: Ja
Definiert in:
Codex:

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



Quellcode

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

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