如何將自定義字段添加到此註冊碼中?例如,我想添加「公司名稱」。在這種形式下,我們只有基本的領域。如何將自定義字段添加到註冊表單中? wordpress
我的代碼:
<div class="registration">
<form name="registerform" action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" method="post">
<p>
<label for="user_login">Username</label>
<input type="text" name="user_login" value="">
</p>
<p>
<label for="user_email">E-mail</label>
<input type="text" name="user_email" id="user_email" value="">
</p>
<p style="display:none">
<label for="confirm_email">Please leave this field empty</label>
<input type="text" name="confirm_email" id="confirm_email" value="">
</p>
<p id="reg_passmail">A password will be e-mailed to you.</p>
<input type="hidden" name="redirect_to" value="/login/?action=register&success=1" />
<p class="submit"><input type="submit" name="wp-submit" id="wp-submit" value="Register" /></p>
</form>
</div>
我們總是樂於幫助和支持新的編碼器,但是您首先需要幫助自己。 : - )*** [做了更多的研究之後](https://meta.stackoverflow.com/q/261592/1011527)如果你有問題**發佈你已經嘗試了清楚的解釋是什麼是不是'工作**並提供[最小,完整和可驗證示例](http://stackoverflow.com/help/mcve)。閱讀[如何問](http://stackoverflow.com/help/how-to-ask)一個很好的問題。請務必[參觀](http://stackoverflow.com/tour)並閱讀[this](https://meta.stackoverflow.com/q/347937/1011527)。 – mega6382