WPDev.one
Core Function
View Source on Trac ↗

get_profile()

get_profile( mixed $field, mixed $user = false )

Retrieve user data based on field.

Parameters 2 required

Name / Type Description
$field
string

User meta field.

Required
(false

| int) $user Optional. User ID to retrieve the field for. Default false (current user).

Required

Return Value

(string)
The author's field from the current author's DB object.

Function Information

Since Version
1.5.0
Source File
wp-includes/deprecated.php
Advertisement