WordPress at a glance
function is not described

get_profile() WP 1.5.0

Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. Use get_the_author_meta() instead.

Retrieve user data based on field.

No Hooks.


String. The author's field from the current author's DB object.


get_profile( $field, $user );
$field(string) (required)
User meta field.
User ID to retrieve the field for.
Default: false (current user)


  • See: get_the_author_meta()


Since 1.5.0 Introduced.
Deprecated Since 3.0.0 Use get_the_author_meta()

Code of get_profile() WP 5.7

function get_profile( $field, $user = false ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'get_the_author_meta()' );
	if ( $user ) {
		$user = get_user_by( 'login', $user );
		$user = $user->ID;
	return get_the_author_meta( $field, $user );