Switch language

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




delete_all_user_settings [ WordPress Function ]

delete_all_user_settings ( No parameters )
Defined at:



Delete the user settings of the current user.

Source


<?php
function delete_all_user_settings() {
    if ( ! 
$user wp_get_current_user() )
        return;

    
update_user_option$user->ID'user-settings'''false );
    
setcookie('wp-settings-' $user->ID' 'time() - 31536000SITECOOKIEPATH);
}
?>

Examples [ wp-snippets.com ]

Top Google Search Results

More ...

User discussions [ wordpress.org ]

0 User Note(s)

None yet. Be the first!

Add New ...



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