Title: Automatic logout after posting ?
Last modified: August 18, 2016

---

# Automatic logout after posting ?

 *  [michelbenardfr](https://wordpress.org/support/users/michelbenardfr/)
 * (@michelbenardfr)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/automatic-logout-after-posting/)
 * Hi,
    read here to undestand why I ask this question : [http://wordpress.org/support/topic/44060](http://wordpress.org/support/topic/44060)
 * How can I tune WP so that a user is logged out as soon as he has published its
   post ?
 * Thanks
    Michel

Viewing 1 replies (of 1 total)

 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/automatic-logout-after-posting/#post-260059)
 * Make a plugin and use this hook:
 * `add_action('publish_post', 'function_that_logs_people_out');`

Viewing 1 replies (of 1 total)

The topic ‘Automatic logout after posting ?’ is closed to new replies.

## Tags

 * [Logout](https://wordpress.org/support/topic-tag/logout/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * Last activity: [20 years, 8 months ago](https://wordpress.org/support/topic/automatic-logout-after-posting/#post-260059)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
