_wp_credits_add_profile_link()WP 3.2.0

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

Эта функция считается внутренней для использования самим ядром. Не рекомендуется использовать эту функцию в своем коде.

Хуков нет.

Возвращает

null. Ничего.

Использование

_wp_credits_add_profile_link( $display_name, $username, $profiles );
$display_name(строка) (обязательный) (передается по ссылке — &)
The contributor's display name (passed by reference).
$username(строка) (обязательный)
The contributor's username.
$profiles(строка) (обязательный)
URL to the contributor's WordPress.org profile page.

Список изменений

С версии 3.2.0 Введена.

Код _wp_credits_add_profile_link() WP 6.1.1

function _wp_credits_add_profile_link( &$display_name, $username, $profiles ) {
	$display_name = '<a href="' . esc_url( sprintf( $profiles, $username ) ) . '">' . esc_html( $display_name ) . '</a>';
}