Uses
Uses | Description |
---|---|
wp-includes/formatting.php: esc_url() | Checks and cleans a URL. |
wp-includes/formatting.php: esc_html() | Escaping for HTML blocks. |
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.
(string) (Required) The contributor's display name (passed by reference).
(string) (Required) The contributor's username.
(string) (Required) URL to the contributor's WordPress.org profile page.
File: wp-admin/includes/credits.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>'; }
Version | Description |
---|---|
3.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_wp_credits_add_profile_link