boonebgorges / buddypress-docs

GNU General Public License v3.0
106 stars 44 forks source link

Replace bp_moderate calls with Docs-specific mapped cap #747

Open boonebgorges opened 5 months ago

boonebgorges commented 5 months ago

A user requested the ability to customize who is able to manage certain aspects of Docs. But currently this is difficult because of our direct calls to bp_moderate. Instead, we should either have a wrapper function with a filter, or else replace bp_moderate with our own cap, which could then be mapped by default to bp_moderate.