Opened 3 years ago
Last modified 3 years ago
#8670 new enhancement
Block or widget arguments should be filterable
Reported by: | shawfactor | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Contributions | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | needs-patch |
Cc: |
Description
All core block or widget arguments should be filterable
My use case is when deploying the whos online block/widget.
Ideally (for my setup) the block/widget should not show the current user (the current user already knows they are online) as well as other users who have not yet agreed to the T&Cs. Atm the only way to achieve this is too override the whole block, this is complete overkill.
A better approach would be to add a filter to the args buddypress uses to generate the block/widget
I’m sure similar functionality is needed for most core buddypress blocks.
I'm not opposed to this. I'll be happy to review a patch about it. It's important such enhancements get new contributors to start help us with code.