Un motore di ricerca WordPress per sviluppatori e autori di temi



_wp_credits_add_profile_link ›

Da3.2.0
Deprecaton/a
_wp_credits_add_profile_link ( $display_name, $username, $profiles )
Accedi:
  • private
Parametri: (3)
  • (string) $display_name The contributor's display name (passed by reference).
    Richiesto:
  • (string) $username The contributor's username.
    Richiesto:
  • (string) $profiles URL to the contributor's WordPress.org profile page.
    Richiesto:
Definito a:
Codex:

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



Sorgenti

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