WordPress开发者和主题制作者的搜索引擎



_wp_credits_add_profile_link ›

Since3.2.0
已弃用n/a
_wp_credits_add_profile_link ( $display_name, $username, $profiles )
访问:
  • private
参数: (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
定义在:
文档:

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



源码

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