Title: Get user status
Last modified: August 22, 2016

---

# Get user status

 *  Resolved [hf74](https://wordpress.org/support/users/hf74/)
 * (@hf74)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/get-user-status/)
 * Is there a filter to get the user status and if it’s pending return the wp_logout?
 * To end the session in which user registered.
 * [https://wordpress.org/plugins/new-user-approve/](https://wordpress.org/plugins/new-user-approve/)

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

 *  [Josh Harrison](https://wordpress.org/support/users/picklewagon/)
 * (@picklewagon)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/get-user-status/#post-5216620)
 * Sorry for the delay in responding to you. What exactly are you trying to do? 
   The user should not be able to sign in without approval.
 *  Thread Starter [hf74](https://wordpress.org/support/users/hf74/)
 * (@hf74)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/get-user-status/#post-5216623)
 * I am having this run in conjunction with woocommerce, I’m running a site with
   wholesale pricing, in addition there are several levels of pricing, so I need
   to manually approve users and put them into their appropriate pricing group, 
   I have set pricing to be hidden from users who are not logged in. However when
   a new user registers from the woocommerce my accounts page they are logged in
   automatically until they log out, even though they are technically still pending
   in “new user approve” I was looking for a way to log them out right after they
   register so they don’t see pricing (especially since they would see wrong pricing).
 * It would be a great feature to have in the plug-in. For now I have written something
   in my functions.php to check for both logged in and user status before returning
   pricing, It’s working for me.
 *  [Josh Harrison](https://wordpress.org/support/users/picklewagon/)
 * (@picklewagon)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/get-user-status/#post-5216649)
 * I’m looking into this since the experience should be the same despite having 
   other plugins, such as WooCommerce activated.

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

The topic ‘Get user status’ is closed to new replies.

 * ![](https://ps.w.org/new-user-approve/assets/icon-128x128.gif?rev=2544141)
 * [New User Approve](https://wordpress.org/plugins/new-user-approve/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/new-user-approve/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/new-user-approve/)
 * [Active Topics](https://wordpress.org/support/plugin/new-user-approve/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/new-user-approve/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/new-user-approve/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Josh Harrison](https://wordpress.org/support/users/picklewagon/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/get-user-status/#post-5216649)
 * Status: resolved