Retrieves the link to a contributor’s WordPress.org profile page.
$display_namestringrequired
$usernamestringrequired
$profilesstringrequired
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–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_wp_credits_add_profile_link