bp_invites_member_invite_register_screen_message ()
检查电子邮件是否连接到一个活动邀请,填充电子邮件地址,并在注册页面显示欢迎消息。
描述
源
文件:bp-invites / bp-invites-functions.php
函数bp_invites_member_invite_register_screen_message() {global $bp;如果(!Bp_invites_member_invite_invitation_page ()) {return;}如果(收取($ _GET['电子邮件 '] ) ) { $ 电子邮件= urldecode ($ _GET['邮件']);} else {$email = "; ";} ? > < ?>< div id="message" class="error"这看起来像是你试图接受一个邀请加入这个网站,但是一些信息丢失了。请点击邀请邮件中的链接再试一次。”php endif;> < ?php if ( $bp->signup->step == 'request-details' && ! empty( $email ) ) : ?> have_posts() ) { while ( $bp_get_invitee_email->have_posts() ) { $bp_get_invitee_email->the_post(); $inviters[] = get_the_author_meta( 'ID' ); } } $inviters = array_unique( $inviters ); $inviters_names = array(); foreach ( $inviters as $inviter ) { $inviters_names[] = bp_core_get_user_displayname( $inviter ); } if ( ! empty( $inviters_names ) ) { $message = sprintf( _n( 'Welcome! You\'ve been invited to join the site by the following user: %s. Please fill out the information below to create your account.', 'Welcome! You\'ve been invited to join the site by the following users: %s. Please fill out the information below to create your account.', count( $inviters_names ), 'buddyboss' ), implode( ', ', $inviters_names ) ); echo ''; } ?>
更新日志
版本 | 描述 |
---|---|
BuddyBoss 1.0.0 | 介绍了。 |