Alert: 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.

_wp_credits_add_profile_link() WordPress Function

The wp_credits_add_profile_link() function is used to add a link to the WordPress credits page. The function takes two parameters: the WordPress credit page URL and the link text.

_wp_credits_add_profile_link( string $display_name, string $username, string $profiles ) #

Retrieve the link to a contributor’s WordPress.org profile page.


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.


Top ↑

Source

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>';
}


Top ↑

Changelog

Changelog
VersionDescription
3.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.