Title: WpForo API
Last modified: April 11, 2017

---

# WpForo API

 *  Resolved [michelfigueiredo](https://wordpress.org/support/users/michelfigueiredo/)
 * (@michelfigueiredo)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/wpforo-api/)
 * Hello,
    Can I use wpforo control of users and user groups outside of wpforo? 
   For example, identify which group the user belongs to.
 * Wordpress gives me the opportunity to pull some user information, such as “is_user_logged_in()”,“
   wp_get_current_user ()”, “current_user-> user_email”.
 * My question is, can I do the same with wpforo control in a custom page?
 * I want to block or enable access via code, based on the group that the user belongs
   to in wpforo.

Viewing 1 replies (of 1 total)

 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/wpforo-api/#post-9021456)
 * wpForo user API is based on all functions of WordPress user API. You can use 
   all WordPress functions to get current user, login status and email.
    However
   if you want to get wpForo specific data, like usergroup you should get it from
   global $wpforo object. Current user all data can be received with variable:
 *     ```
       global $wpforo;
       var_dump($wpforo->current_object['user']);
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘WpForo API’ is closed to new replies.

 * ![](https://ps.w.org/wpforo/assets/icon-256x256.png?rev=2121644)
 * [wpForo Forum](https://wordpress.org/plugins/wpforo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforo/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforo/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/wpforo-api/#post-9021456)
 * Status: resolved