wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_pre_insert_user_data › Hooks de Filtros WordPress

Desde5.8.0
Obsoleton/a
apply_filters( 'wp_pre_insert_user_data', $data, $update, ( $update ? $user_id : null )
Parâmetros: (4)
  • (array) $data { Values and keys for the user. @type string $user_login The user's login. Only included if $update == false @type string $user_pass The user's password. @type string $user_email The user's email. @type string $user_url The user's url. @type string $user_nicename The user's nice name. Defaults to a URL-safe version of user's login @type string $display_name The user's display name. @type string $user_registered MySQL timestamp describing the moment when the user registered. Defaults to the current UTC timestamp. }
    Required: Yes
  • (bool) $update Whether the user is being updated rather than created.
    Required: Yes
  • (int|null) $user_id ID of the user to be updated, or NULL if the user is being created.
    Required: Yes
  • (array) $userdata The raw array of data passed to wp_insert_user().
    Required: Yes
Definido em:
Codex:

Filters user data before the record is created or updated.

It only includes data in the users table, not any user metadata.





Fonte

$data = apply_filters( 'wp_pre_insert_user_data', $data, $update, ( $update ? $user_id : null ), $userdata );