Title: _wp_credits_add_profile_link
Published: April 25, 2014
Last modified: August 20, 2026

---

# _wp_credits_add_profile_link( string $display_name, string $username, string $profiles )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/_wp_credits_add_profile_link/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/functions/_wp_credits_add_profile_link/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/_wp_credits_add_profile_link/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/_wp_credits_add_profile_link/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/_wp_credits_add_profile_link/?output_format=md#wp--skip-link--target)

This function’s access is marked private. This means it is not intended for use 
by plugin or theme developers, only by core. It is listed here for completeness.

Retrieves the link to a contributor’s WordPress.org profile page.

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/_wp_credits_add_profile_link/?output_format=md#parameters)󠁿

 `$display_name`stringrequired

The contributor’s display name (passed by reference).

`$username`stringrequired

The contributor’s username.

`$profiles`stringrequired

URL to the contributor’s WordPress.org profile page.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/_wp_credits_add_profile_link/?output_format=md#source)󠁿

    ```php
    function _wp_credits_add_profile_link( &$display_name, $username, $profiles ) {
    	$display_name = '<a href="' . esc_url( sprintf( $profiles, $username ) ) . '">' . esc_html( $display_name ) . '</a>';
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/credits.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-admin/includes/credits.php#L70)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/credits.php#L70-L72)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/_wp_credits_add_profile_link/?output_format=md#related)󠁿

| Uses | Description | 
| [esc_url()](https://developer.wordpress.org/reference/functions/esc_url/)`wp-includes/formatting.php` |

Checks and cleans a URL.

  | 
| [esc_html()](https://developer.wordpress.org/reference/functions/esc_html/)`wp-includes/formatting.php` |

Escaping for HTML blocks.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/_wp_credits_add_profile_link/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.2.0](https://developer.wordpress.org/reference/since/3.2.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2F_wp_credits_add_profile_link%2F)
before being able to contribute a note or feedback.