我还没有真正测试过这一点,但我只是在猜测如何使用注册&;个人资料页。
尝试以下操作:
function my_login_errors( $errors ) {
if ( empty( $_POST[\'custom_field\'] ) )
$errors->add( \'empty_custom_field\', \'<strong>ERROR</strong>: Please enter some info.\' );
return $errors;
}
add_filter( \'login_errors\', \'my_login_errors\' );
Note: 修改
custom_field
零件和
message 照着