Immediately available is BP Attachments 1.1.0. This BuddyPress Add-on maintenance release main goal is to make it ready for the next BuddyPress major release (12.0). If you haven’t read about the important change BuddyPress 12.0.0 will introduce, please read this post about its first beta version.
Showing the way to BuddyPress third party Plugins/Add-ons
The BP Attachments 1.1.0 maintenance release is the opportunity the BuddyPress development team chose to demonstrate how third party BuddyPress Plugins/Add-ons can adapt their code to be compatible with BuddyPress 12.0.0 as well as with previous versions of BuddyPress. It’s very important to us, as a community, we all take a few actions – during the next 2 months – to prepare the BuddyPress next major version release (slated to October 30).
In addition to documentation resources Third party BuddyPress Plugin/Add-on authors can read, they can now learn from a real use case thanks to this BP Attachments new maintenance release.
The other changes
- The experimental avatar UI is now disabled by default. If you want to experiment it, you’ll need to use this piece of code:
add_filter( 'bp_attachments_use_experimental_features', '__return_true' );
- When enabled this experimental UI now includes a link to delete the existing avatar.
- If you’re not happy with how Media Attachments are rendered inside the Activity updates, you can use a filter to reorganize Activity blocks*. There’s an exemple of use here.
*
ICYMI: since BuddyPress 11.0.0, as you can opt-in to use Blocks inside BP Activity content using the filter below, BP Attachments is enjoying this feature and use it to attach Media to Activity updates.
add_filter( 'bp_is_activity_blocks_active', '__return_true' );
[…] BP Attachments 1.1.0 […]
You state that
ICYMI: since BuddyPress 11.0.0, as you can opt-in to use Blocks inside BP Activity content using the filter below, BP Attachments is enjoying this feature and use it to attach Media to Activity updates.
But that does not seem to be the case (although Im probabaly misunderstanding the statement).
I have enabled the filter (it is enabled via bp attachments anyway in bp-attachments-activity.php)
There is no change whatsoever in “What’s new, Peter?” activity creation form. Does this take effect somewhere else? This has been testted on a blank buddypress install…
Hi @shawfactor
What I meant was: the Activity component supports the Block API, meaning if the raw content of an activity is using the Block grammar, it will be rendered just like it’s the case for regular posts. This filter was mainly added to progress on the project we have about building an Activity Block Editor, sorry if my english wasn’t clear.
Makes sense Thankyou for the clarification. I can start to see where this is headed, looks good.