• Resolved michelfigueiredo

    (@michelfigueiredo)


    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

    (@gvectors-team)

    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.