Switch language

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




default_password_nag_edit_user [ WordPress Function ]

default_password_nag_edit_user ( $user_ID, $old_data )
Defined at:



No description yet.

Source


<?php
function default_password_nag_edit_user($user_ID$old_data) {
    if ( ! 
get_user_option('default_password_nag'$user_ID) ) //Short circuit it.
        
return;

    
$new_data get_userdata($user_ID);

    if ( 
$new_data->user_pass != $old_data->user_pass ) { //Remove the nag if the password has been changed.
        
delete_user_setting('default_password_nag'$user_ID);
        
update_user_option($user_ID'default_password_nag'falsetrue);
    }
}
?>

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