wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



_wp_credits_add_profile_link › WordPress Function

Depuis3.2.0
Dépréciéen/a
_wp_credits_add_profile_link ( $display_name, $username, $profiles )
Accès:
  • private
Paramètres: (3)
  • (string) $display_name The contributor's display name (passed by reference).
    Requis: Oui
  • (string) $username The contributor's username.
    Requis: Oui
  • (string) $profiles URL to the contributor's WordPress.org profile page.
    Requis: Oui
Défini(e) dans:
Codex:

Retrieves the link to a 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>';
}