• Resolved kjf9

    (@kjf9)


    Hi Boone,

    Thanks for all your work on this plugin, it’s brill.

    I’m wondering whether there is a way to check if a group has Docs enabled outside the loop. At the moment I am generating custom nav menus and I can’t find a way to query whether a group has Docs enabled.

    Thanks!

    https://wordpress.org/plugins/buddypress-docs/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter kjf9

    (@kjf9)

    A function within the loop would be fine too actually – I harvest group information using a loop into an array to build my nav from so inside the loop would be just as good.

    Thanks again!

    Plugin Author Boone Gorges

    (@boonebgorges)

    Get the group settings with $group_settings = bp_docs_get_group_settings( $group_id ). Everything you need should be there.

    Thread Starter kjf9

    (@kjf9)

    Perfect.

    Thank you! 🙂

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

The topic ‘Checking if a group has docs enabled’ is closed to new replies.