On this page
_wp_credits_add_profile_link( string $display_name, string $username, string $profiles )
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Retrieve the link to a contributor’s WordPress.org profile page.
Parameters
$display_namestring Required-
The contributor's display name (passed by reference).
$usernamestring Required-
The contributor's username.
$profilesstring Required-
URL to the contributor's WordPress.org profile page.
Source
File: wp-admin/includes/credits.php. View all references
function _wp_credits_add_profile_link( &$display_name, $username, $profiles ) {
$display_name = '<a href="' . esc_url( sprintf( $profiles, $username ) ) . '">' . esc_html( $display_name ) . '</a>';
}
Related
Uses
| Uses | Description |
|---|---|
| esc_url() wp-includes/formatting.php | Checks and cleans a URL. |
| esc_html() wp-includes/formatting.php | Escaping for HTML blocks. |
Changelog
| Version | Description |
|---|---|
| 3.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_wp_credits_add_profile_link