For the complete documentation index, see llms.txt. This page is also available as Markdown.

[acpt_user]

Display a user meta field value

Displays a user meta field value. If no user ID is provided, the currently logged-in user is used.

Usage

[acpt_user box="box_name" field="field_name"]

Specify a user ID explicitly:

[acpt_user uid="234" box="box_name" field="field_name"]

Parameters

Parameter
Required
Description

box

Required

The meta box name

field

Required

The field name

uid

Optional

The user ID. Defaults to the current logged-in user.

All shared parameters are also accepted.

Example

Display the current user's profile picture field:

$userId = get_current_user_id();
echo do_shortcode('[acpt_user uid="' . $userId . '" box="profile" field="avatar"]');

Last updated