register_form
最后更新于:2021-11-27 21:44:04
do_action( ‘register_form’ )
Fires following the ‘Email’ field in the user registration form.
源文件
文件: gc-login.php
add_action( 'register_form', 'gcorg_myplugin_add_registration_fields' ); function gcorg_myplugin_add_registration_fields() { // Get and set any values already sent $user_extra = ( isset( $_POST['user_extra'] ) ) ? $_POST['user_extra'] : ''; ?> <p> <label for="user_extra"><?php _e( 'Extra Field', 'myplugin_textdomain' ) ?><br /> <input type="text" name="user_extra" id="user_extra" class="input" value="<?php echo esc_attr( stripslashes( $user_extra ) ); ?>" size="25" /></label> </p> <?php }