update_usermeta

update_usermeta

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('update_usermeta') is found 1 times:

  • /wp-includes/deprecated.php line 2351
     
    	$cur = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->usermeta WHERE user_id = %d AND meta_key = %s", $user_id, $meta_key) );
    
    	if ( $cur )
    		do_action( 'update_usermeta', $cur->umeta_id, $user_id, $meta_key, $meta_value );
    
    	if ( !$cur )
    		$wpdb->insert($wpdb->usermeta, compact('user_id', 'meta_key', 'meta_value') );
    	elseif ( $cur->meta_value != $meta_value )
    		$wpdb->update($wpdb->usermeta, compact('meta_value'), compact('user_id', 'meta_key') );
    	else