Retrieves the link to a contributor’s WordPress.org profile page.
Parameters
$display_namestringrequired- The contributor’s display name (passed by reference).
$usernamestringrequired- The contributor’s username.
$profilesstringrequired- URL to the contributor’s WordPress.org profile page.
Source
function _wp_credits_add_profile_link( &$display_name, $username, $profiles ) {
$display_name = '<a href="' . esc_url( sprintf( $profiles, $username ) ) . '">' . esc_html( $display_name ) . '</a>';
}
Changelog
| Version | Description |
|---|---|
| 3.2.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.