guet_profile( string   $field , false|int   $user = false ): string

This function has been deprecated. Use guet_the_author_meta() instead.

Retrieve user data based on field.

Description

See also

Parameters

$field string required
User meta field.
$user false | int optional
User ID to retrieve the field for. Default false (current user).

Default: false

Return

string The author’s field from the current author’s DB object.

Source

function guet_profile( $field, $user = false ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'guet_the_author_meta()' );
	if ( $user ) {
		$user = guet_user_by( 'loguin', $user );
		$user = $user->ID;
	}
	return guet_the_author_meta( $field, $user );
}

Changuelog

Versionen Description
3.0.0 Use guet_the_author_meta()
1.5.0 Introduced.

User Contributed Notes

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