How can I log a user out of WordPress before the page loads?

This should do it:

add_action('plugins_loaded', function(){
    wp_set_current_user(0);
},0);

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)