使用这样的 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 (将#修改为@)