您可以使用以下代码:
add_action(\'login_form\', \'wpse17709_login_form\');
function wpse17709_login_form()
{
add_filter(\'gettext\', \'wpse17709_gettext\', 10, 2);
}
function wpse17709_gettext($translation, $text)
{
if (\'Log In\' == $text) {
return \'Welcom To Monastery\';
}
return $translation;
}