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



admin_created_user_email ›

Since3.0.0
已弃用n/a
admin_created_user_email ( $text )
参数:
  • (string) $text
    Required: Yes
返回:
  • (string)
定义在:
文档:
Change Log:
  • MU

暂无描述



源码

function admin_created_user_email( $text ) {
	$roles = get_editable_roles();
	$role  = $roles[ $_REQUEST['role'] ];

	return sprintf(
		/* translators: 1: Site title, 2: Site URL, 3: User role. */
		__(
			'Hi,
You\'ve been invited to join \'%1$s\' at
%2$s with the role of %3$s.
If you do not want to join this site please ignore
this email. This invitation will expire in a few days.

Please click the following link to activate your user account:
%%s'
		),
		wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ),
		home_url(),
		wp_specialchars_decode( translate_user_role( $role['name'] ) )
	);
}