Support is currently limited. See our hours of operation.

This help desk is no longer actively support. We have switched to a ticketing system to more smoothly manage support, and free up development time. Your newly created tickets won't be available here. You will instead have an email history of your new tickets.

We are working on moving everything current and helpful from public tickets into the docs. This will be a long process and in the meantime, public tickets will remain searchable.

Your private tickets will remain available to you indefinitely. See your old tickets.

Help Desk

Shortcode for BuddyPress user profile link?

Labels

This Ticket is public

Notifications

I know there's [siteurl] but can't figure out how to get the user's slug:

[siteurl]/members/[userslug]/profile/edit

Results I'm looking for:

http://mydomain.com/members/john-smith/profile/edit

I would like to put this on the form edit page below the submit button. See pic.

Anyone?


Attachment:

For anyone interested, I created my own shortcode in my theme's functions.php:
<?php
function bpProfileEditLink ( $atts=null, $content=null ) {
global $user_ID;

if ( is_user_logged_in() ) {
return '<a href='.bp_core_get_user_domain( $user_ID ).'profile/edit/>Edit Profile</a>';
} else {
return "";
}
}
add_shortcode('bpProfileEditLink','bpProfileEditLink');
?>

If anyone sees any issues with this, please let me know.
Thanks,
Jeff

Ticket closed.

[formidable id=164]
[formidable id=164]