Switch language

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




wpmu_signup_user [ WordPress Function ]

wpmu_signup_user ( $user, $user_email, $meta = '' )
Parameters:
  • (string) $user The user's requested login name.
  • (string) $user_email The user's email address.
  • (array) $meta By default, this is an empty array.
Uses:
Defined at:



Record user signup information for future activation.

This function is used when user registration is open but new site registration is not.

Source


<?php
function wpmu_signup_user($user$user_email$meta '') {
    global 
$wpdb;

    
// Format data
    
$user preg_replace'/\s+/'''sanitize_user$usertrue ) );
    
$user_email sanitize_email$user_email );
    
$key substrmd5time() . rand() . $user_email ), 016 );
    
$meta serialize($meta);

    
$wpdb->insert$wpdb->signups, array(
        
'domain' => '',
        
'path' => '',
        
'title' => '',
        
'user_login' => $user,
        
'user_email' => $user_email,
        
'registered' => current_time('mysql'true),
        
'activation_key' => $key,
        
'meta' => $meta
    
) );

    
wpmu_signup_user_notification($user$user_email$key$meta);
}
?>

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