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



insert_custom_user_meta › WordPress Filter Hooks

Seit5.9.0
Veraltetn/v
apply_filters( 'insert_custom_user_meta', $custom_meta, $user, $update, $userdata )
Parameter: (4)
  • (array) $custom_meta Array of custom user meta values keyed by meta key.
    Erforderlich: Ja
  • (WP_User) $user User object.
    Erforderlich: Ja
  • (bool) $update Whether the user is being updated rather than created.
    Erforderlich: Ja
  • (array) $userdata The raw array of data passed to wp_insert_user().
    Erforderlich: Ja
Definiert in:
Codex:

Filters a user's custom meta values and keys immediately after the user is created or updated and before any user meta is inserted or updated.

For non-custom meta fields, see the {@see 'insert_user_meta'} filter.





Quellcode

$custom_meta = apply_filters( 'insert_custom_user_meta', $custom_meta, $user, $update, $userdata );