Switch language

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




update_user_status [ WordPress Function ]

update_user_status ( $id, $pref, $value, $deprecated = null )
Defined at:



No description yet.

Source


<?php
function update_user_status$id$pref$value$deprecated null ) {
    global 
$wpdb;

    if ( 
null !== $deprecated )
        
_deprecated_argument__FUNCTION__'3.1' );

    
$wpdb->update$wpdb->users, array( $pref => $value ), array( 'ID' => $id ) );

    
$user = new WP_User$id );
    
clean_user_cache$user );

    if ( 
$pref == 'spam' ) {
        if ( 
$value == )
            
do_action'make_spam_user'$id );
        else
            
do_action'make_ham_user'$id );
    }

    return 
$value;
}
?>

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