bp_core_get_core_userdata( int $user_id )

Fetch everything in the wp_users table for a user, without any usermeta.

Parameters Parameters


(int) (Required) The ID of the user.

Top ↑

Return Return

(array|bool) Array of data on success, boolean false on failure.

Source Source

File: bp-members/bp-members-functions.php

function bp_core_get_core_userdata( $user_id = 0 ) {
	if ( empty( $user_id ) ) {
		return false;

	// Get core user data
	$userdata = BP_Core_User::get_core_userdata( $user_id );

	 * Filters the userdata for a passed user.
	 * @since 1.2.0
	 * @param array|bool $userdata Array of user data for a passed user on success, boolean false on failure.
	return apply_filters( 'bp_core_get_core_userdata', $userdata );

Top ↑

Changelog Changelog

Version Description
1.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.