Uma área de pesquisa sobre o WordPress para devs e autores do tema



_wp_credits_add_profile_link ›

Desde3.2.0
Obsoleton/a
_wp_credits_add_profile_link ( $display_name, $username, $profiles )
Acesso:
  • private
Parâmetros: (3)
  • (string) $display_name The contributor's display name (passed by reference).
    Required: Yes
  • (string) $username The contributor's username.
    Required: Yes
  • (string) $profiles URL to the contributor's WordPress.org profile page.
    Required: Yes
Definido em:
Codex:

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



Fonte

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