_wp_credits_add_profile_link

Advertisement

Private Access Private Access

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.

Summery Summery

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

Syntax Syntax

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

Parameters Parameters

$display_name

(Required) The contributor's display name (passed by reference).

$username

(Required) The contributor's username.

$profiles

(Required) URL to the contributor's WordPress.org profile page.

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

Advertisement

Changelog Changelog

Changelog
Version Description
3.2.0 Introduced.

Advertisement

Leave a Reply