使用标题更改LOGIN_Message

时间:2019-01-25 作者:kydronin

我正在尝试在登录表单上添加消息。如何根据页面标题或url参数更改内容

此代码转到我的函数。php

function custom_login_message() {
  $message = "<h2>". PAGE TITLE HERE ."</h2>";
  return $message;
}
add_filter(\'login_message\', \'custom_login_message\');
我想它改变的网页登录,注册和丢失密码。

1 个回复
SO网友:Rick Hellewell

如果您想自定义登录页面,那么最好从这里开始查看Codex:https://codex.wordpress.org/Customizing_the_Login_Form

(法典是很多事情的最佳起点……)

您将找到许多关于如何自定义登录表单和文本各个部分的信息和示例。