_wp_credits_add_profile_link() – Retrieve the link to a contributor’s WordPress.org profile page.

You appear to be a bot. Output may be restricted

Description

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

Usage

_wp_credits_add_profile_link( $display_name, $username, $profiles );

Parameters

$display_name
( string ) required – The contributor's display name (passed by reference).
$username
( string ) required – The contributor's username.
$profiles
( string ) required – URL to the contributor's WordPress.org profile page.

Returns

void

Source

File name: wordpress/wp-admin/includes/credits.php
Lines:

1 to 3 of 3
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 on GitHub View on Trac