首页 > 新闻资讯 > 自定义注册页面

自定义注册页面

6条评论
标签:
更多

添加这段代码到WordPress主题的functions.php,将在用户注册页面显示自定义的内容。

01    add_action('register_form', 'register_message');
02    function register_message() {
03        $html = '
04            <div style="margin:10px 0;border:1px solid #e5e5e5;padding:10px">
05                <p style="margin:5px 0;">
06            Joining this site you agree to the following terms. Do no harm!
07            </p>
08            </div>';
09        echo $html;
10    }

* 版权声明:作者WordPress啦! 转载请注明出处。

#1
不大能看得懂哦
#2
样式还是见仁见智。
#3
不错的博客 收藏啦。。。
#4
还没用到这功能
#5
不错
#6
This was actually what I was looking for, and I am glad to come here! Thanks for sharing the such information with us.

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.