My Profile

add_shortcode( ‘CUSER-PROFILE’, ‘cuser_profile_shortocode_handler’ );function cuser_profile_shortocode_handler( $atts ){$atts = shortcode_atts( array( ‘text’=> ‘my profile’,), $atts );if( !is_user_logged_in() )return ”;$link = home_url( ‘/hbcmembers/’ . bp_core_get_username( get_current_user_id() ) . ‘/profile/’ );return “” . $atts[‘text’] . ““;}