WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Statistics
[Plugin: WP-Statistics] Possible to get user roles (4 posts)

  1. snails07
    Member
    Posted 1 year ago #

    I have several user roles and was wondering if it would be possible to display number of users per role?

    Would there be some code that I could edit easily enough to do this?

    http://wordpress.org/extend/plugins/wp-statistics/

  2. Mostafa Soufi
    Member
    Plugin Author

    Posted 1 year ago #

    hi,
    Your user must have manage_options access!

  3. snails07
    Member
    Posted 1 year ago #

    Okay, I can give them that access but how would I display these roles on the front end.
    For example, I can display the total number of users online, but how could I display the number of users per role?

    So on the front end it would say something like:
    23 total users online
    13 ‘role 1’ users online
    10 ‘role 2’ users online

    Thanks

  4. Mostafa Soufi
    Member
    Plugin Author

    Posted 1 year ago #

    Hello
    Should be defined for the extension of
    It is difficult!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic