mycred_get_users_profile_url
Description
This function will return a given users profile URL based on your websites setup. If you have BuddyPress or bbPress installed, the function will return the profile URL these plugins provide. Supports setups where the author_base has been changed.
Available since version 1.7.4
Returns
Returns the profile url string of the given user or an empty string if the user ID is blank or zero.
Parameters
Param | Type | Required | Description | |
---|---|---|---|---|
function mycred_get_users_profile_url( |
||||
$user_id |
int | Yes | The numeric user ID. |
|
) { ... } |
Examples
Example 1: Echo the current users profile URL.