Hi,
Thank you for reaching out to us and for your interest in our plugin.
If you use the [wppb-edit-profile] shortcode inside a page you will generate the Edit Profile Form.
As an Administrator you will see a Select User dropdown field that you can use to choose any user and update/edit his profile.
With custom code we can add inside the Single-Userlisting Template a shortcode that will generate a link that will take you, the Admin, to the Edit Profile page created with the [wppb-edit-profile] shortcode like so:
1. Create an empty plugin like this: https://gist.github.com/sareiodata/76f701e01db6685829db
2. Add the following code to the end of it:
/*
* Show Edit Profile Link to current user's profile on Single-Userlisting template, visible only to admins.
*/
// Usage [user link="https://www.example.com/edit-profile" title="Edit your profile" user_id="{{user_id}}"]
add_shortcode('pb-edit-profile-link', 'func_pb_edit_profile_link');
function func_pb_edit_profile_link( $atts ){
if ( !isset( $atts['link'] ) || !isset( $atts['title']) || !isset( $atts['user_id'])){
return '';
}
if ( current_user_can( 'manage_options' ) ){
$output = '<li><a href="' . $atts['link'] . '?edit_user='. $atts['user_id'] . '">' . $atts['title'] . '</a></li>';
return $output;
}
else {
return '';
}
}
3. Install this plugin via FTP (copy it inside wp-content/plugins) or create a zip archive with it and install it via the WordPress plugin upload functionality
Add the shortcode: [user link=”https://www.example.com/edit-profile” title=”Edit your profile” user_id=”{{user_id}}”] inside the Single-Userlisting template.
If you have any other questions regarding Profile Builder Pro please submit a support ticket. You can test the Pro version on our demo install.
Let me know if there is anything else I can help you with.
Best regards,