Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




show_user_form [ WordPress Function ]

show_user_form ( $user_name = '', $user_email = '', $errors = '' )
Defined at:



No description yet.

Source


<?php
function show_user_form($user_name ''$user_email ''$errors '') {
    
// User name
    
echo '<label for="user_name">' __('Username:') . '</label>';
    if ( 
$errmsg $errors->get_error_message('user_name') ) {
        echo 
'<p class="error">'.$errmsg.'</p>';
    }
    echo 
'<input name="user_name" type="text" id="user_name" value="'esc_attr($user_name) .'" maxlength="60" /><br />';
    
_e'(Must be at least 4 characters, letters and numbers only.)' );
    
?>

    <label for="user_email"><?php _e'Email&nbsp;Address:' ?></label>
    <?php if ( $errmsg $errors->get_error_message('user_email') ) { ?>
        <p class="error"><?php echo $errmsg ?></p>
    <?php ?>
    <input name="user_email" type="text" id="user_email" value="<?php  echo esc_attr($user_email?>" maxlength="200" /><br /><?php _e('We send your registration email to this address. (Double-check your email address before continuing.)'?>
    <?php
    
if ( $errmsg $errors->get_error_message('generic') ) {
        echo 
'<p class="error">' $errmsg '</p>';
    }
    
do_action'signup_extra_fields'$errors );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics