微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

使用这样的 WordPress 插件设置表单时如何限制字符最小和最大?

如何解决使用这样的 WordPress 插件设置表单时如何限制字符最小和最大?

我正在开发具有多种设置的 wordpress 插件一个登录授权码,最少需要 4 个字符,最多 20 个字符。我已经尝试过使用 'type' => 'text',字段,看看我是否可以在那里完成,但没有运气。这种情况下有限制字符吗?

        array(
            'label' => 'Login Authorization Code:<br/>Third Field on the Login Form','id' => '97lg_LoginCode','type' => 'text','section' => 'mclogingadget_section','desc' => '<strong>Use 4 to 20 characters.</strong><br/>A third field will appear on your login form,and must be filled out properly to log in.<br/>If nothing is typed in this field,the authorization field will not be added to the login form.',),

感谢您的任何帮助。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。