WordPress at a glance
filter is not described

insert_user_meta filter-hook . WP 4.4.0

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

Does not include contact methods. These are added using wp_get_user_contact_methods($user).

Usage

add_filter( 'insert_user_meta', 'filter_function_name_8812', 10, 3 );
function filter_function_name_8812( $meta, $user, $update ){
	// filter...

	return $meta;
}
$meta(array)

Default meta values and keys for the user.

  • $nickname (string)
    The user's nickname.
    Default: user's username

  • $first_name (string)
    The user's first name.

  • $last_name (string)
    The user's last name.

  • $description (string)
    The user's description.

  • $rich_editing (true/false)
    Whether to enable the rich-editor for the user. False if not empty.

  • $syntax_highlighting (true/false)
    Whether to enable the rich code editor for the user. False if not empty.

  • $comment_shortcuts (true/false)
    Whether to enable keyboard shortcuts for the user.
    Default: false

  • $admin_color (string)
    The color scheme for a user's admin screen.
    Default: 'fresh'

  • $use_ssl (int/true/false)
    Whether to force SSL on the user's admin area. 0|false if SSL is not forced.

  • $show_admin_bar_front (true/false)
    Whether to show the admin bar on the front end for the user.
    Default: true
$user(WP_User)
User object.
$update(true/false)
Whether the user is being updated rather than created.

Where the hook is called

wp_insert_user()
insert_user_meta
wp-includes/user.php 1815
$meta = apply_filters( 'insert_user_meta', $meta, $user, $update );

Where the hook is used (in WP core)

Использование не найдено.