Title: wp_logout function
Last modified: November 22, 2022

---

# wp_logout function

 *  Resolved [djwbrown24](https://wordpress.org/support/users/djwbrown24/)
 * (@djwbrown24)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/wp_logout-function/)
 * Hi,
 * I have successfully created 1 automation that works as expected, the final action
   is to run the wordpress function wp_logout once a logged-in user hits submit 
   on a ninja form.
    I have also created two further automations with just the wordpress
   function wp_logout again after a separate ninja form is submitted, however these
   two don’t work, the log shows the trigger worked but doesn’t show the action 
   being processed. Any assistance would be greatly appreciated, thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Paco González Pérez](https://wordpress.org/support/users/pacogon/)
 * (@pacogon)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/wp_logout-function/#post-16226282)
 * Hi [@djwbrown24](https://wordpress.org/support/users/djwbrown24/) !
 * I would be more than happy to assist you today.
 * It’s quite strange, I just did several tests on my WordPress and it’s working
   perfectly for me.
    In this link you can see my video. [https://loom.com/share/57e19e6953be42e39d7b201345b8720c](https://loom.com/share/57e19e6953be42e39d7b201345b8720c)
   Check to have all plugins and add-ons updated to the latest version. You can 
   also do one thing, on the automations that do not work you can clone them and
   delete the previous ones to be completely new automations.
 * Hope it helps!
 *  Thread Starter [djwbrown24](https://wordpress.org/support/users/djwbrown24/)
 * (@djwbrown24)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/wp_logout-function/#post-16228448)
 * Hi, thanks so much for your response and the helpful video. I’d realised I’d 
   negated to add the users id variable.
 * Thanks again
 *  Plugin Contributor [Paco González Pérez](https://wordpress.org/support/users/pacogon/)
 * (@pacogon)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/wp_logout-function/#post-16229836)
 * You are welcome, [@djwbrown24](https://wordpress.org/support/users/djwbrown24/)
 * I’m glad to hear you’ve got it sorted out.
 * If you have any other questions please let me know here or you can also open 
   a ticket through this url. [https://automatorwp.com/contact-us/](https://automatorwp.com/contact-us/)
 * Have a great day! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘wp_logout function’ is closed to new replies.

 * ![](https://ps.w.org/automatorwp/assets/icon-256x256.png?rev=2271366)
 * [AutomatorWP - Automator plugin for no-code automations, webhooks & custom integrations in WordPress](https://wordpress.org/plugins/automatorwp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/automatorwp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/automatorwp/)
 * [Active Topics](https://wordpress.org/support/plugin/automatorwp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/automatorwp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/automatorwp/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Paco González Pérez](https://wordpress.org/support/users/pacogon/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/wp_logout-function/#post-16229836)
 * Status: resolved