Modify an existing user
Create a new form and set Post Management
as action.
You can select the user to be modified in two ways.
Select the user from the new form modal
Choose All users in the List to populate from menu and select the User to edit, like in this example:

Injecting uid in the shortcode
Add uid to the shortcode:
[acpt_form id="e45b2639" uid="123"] // where 123 is the ID of the user
This particular syntax can also be used in combination with get_current_user_id()
function:
$userId = get_current_user_id();
echo do_shortcode('[acpt_form id="e45b2639" uid="'.$userId.'"] ');
Be careful, if the user ID is wrong, the form will not be displayed.
Last updated