A WordPress-centric search engine for devs and theme authors



_wp_credits_add_profile_link ›

Since3.2.0
Deprecatedn/a
_wp_credits_add_profile_link ( $display_name, $username, $profiles )
Access:
  • private
Parameters: (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
Defined at:
Codex:

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