WordPress

BuddyPress 11.0.0 Adds Filter for Improved JS and CSS Asset Loading, WebP Support, and New Ways to Fetch Activities – WP Tavern

BuddyPress 11.0.0 is now obtainable due to the efforts of 34 contributors. The discharge is called “La Scala” in honor of a pizza restaurant positioned in Issy-Les-Moulineaux, a Paris suburb.

Model 11.0.0 introduces just a few vital modifications. BuddyPress has improved the way it loads its JavaScript and CSS assets with the addition of a new filter in order that they’re now solely loaded on neighborhood pages. Beforehand, the plugin would load them indiscriminately on each web page, a leftover from how they had been loaded within the first Template Pack (BP Legacy). This variation is being rolled out progressively, so customers who need to make the most of this enchancment might want to add the filter to their bp-custom.php file.

add_filter( ‘bp_enqueue_assets_in_bp_pages_only’, ‘__return_true’ );

BP 11.0.0 additionally permits using use .webp photos for profile and canopy photos, after a consumer requested it in a damaging assessment. This function requires WordPress 5.8 or newer.

This launch introduces the flexibility to fetch activities for or excluding a group of users. For instance, builders can now write code to fetch actions for a choose few customers based mostly on consumer ID or block updates from some annoying customers by excluding their consumer IDs.

“This variation is easy however highly effective!” BuddyPress core developer Dan Cavins stated. “For example, you can create customized curiosity exercise streams, or construct a mute function to let your members take a break from different, too-chatty customers!”

Model 11.0.0 additionally offers builders the flexibility to construct customized xProfile loops including a specific set of profile field groups.

BuddyPress 10.0.0 launched an add-ons part within the plugin administration display for customers to simply take a look at plugins or blocks maintained by the BuddyPress improvement group and hosted on WordPress.org. BP lead developer Mathieu Viet stated the group will quickly be publishing a Neighborhood Media Attachments add-on and a block-based Exercise Put up Type that can “standardize the way in which to increase exercise updates with richer and extra partaking content material.” These function plugins are a part of what Viet anticipates will likely be “a transitional 12 months for BuddyPress” and could also be printed to the add-ons part unbiased of a serious launch.

BuddyPress customers ought to look ahead to updates to the add-ons part and take a look at the complete listing of modifications in 11.0.0 in the BuddyPress codex. Updating to the most recent model would require WordPress 5.7 or later.

Leave a Reply

Your email address will not be published. Required fields are marked *