BuddyPress Activity Filter
The BuddyPress Activity Filter plugin helps site administrators customize the activity feed by setting default activity types and hiding irrelevant content. It also allows you to include activities from Custom Post Types (CPT) in the BuddyPress activity stream. Key Features Default Activity Filters: Set different default filters for site-wide and profile-specific activity streams Hide Unwanted Activities: Remove specific activity types from appearing in the activity feed Custom Post Type Support: Enable activity generation for custom post types when published Clean & Lightweight: Optimized code with minimal performance impact Theme Compatible: Works with BuddyPress default theme and Nouveau theme package Easy Administration: Simple settings interface with intuitive controls Security Hardened: Built with WordPress security best practices Performance Optimized: Efficient caching and minimal database queries Developer Friendly: Extensive hooks and filters for customization Perfect For Community sites wanting to streamline their activity feeds Sites with custom post types that need activity integration Administrators who want granular control over activity visibility Communities looking to improve user experience with focused content Developers needing customizable activity filtering solutions Configuration Options Default Filters Tab: – Site-wide Activity Default: Set the default filter for main activity streams – Profile Activity Default: Set the default filter for user profile activity pages Hidden Activities Tab: – Select specific activity types to hide from all activity streams – Professional activity labels for better clarity – Bulk select/deselect options for efficient management Custom Post Types Tab: – Enable activity generation for any public custom post type – Customize activity labels for each post type – Automatic activity creation when CPT posts are published – Global settings for CPT activity visibility Premium Extensions Enhance your BuddyPress community with these premium add-ons: BuddyPress Hashtags – Add hashtag functionality to activities BuddyPress Polls – Create and participate in polls BuddyPress Quotes – Share quotes with beautiful backgrounds BuddyPress Status & Reactions – Custom statuses and emoji reactions BuddyPress Sticky Post – Pin important activities WP Stories – Add Instagram-like stories feature Use Cases Corporate Communities: Hide member registration activities, focus on business updates Educational Sites: Highlight course activities, hide profile updates E-commerce Communities: Show product activities, hide friendship notifications News Sites: Display article publications as activities automatically Developer Communities: Filter technical discussions by post type Developer Features Clean Architecture: Modern OOP design with singleton patterns Extensive Hooks: Over 15 action and filter hooks for customization Backward Compatibility: Automatic migration from older versions Performance Optimized: Smart caching and minimal database impact Security First: Nonce verification, input sanitization, and capability checks Theme Agnostic: Works with any BuddyPress-compatible theme Documentation: Comprehensive inline documentation and code comments Security & Performance Input Sanitization: All user inputs are properly sanitized and validated Nonce Protection: CSRF protection on all admin forms and AJAX requests Capability Checks: Proper permission verification for all admin functions SQL Injection Prevention: Use of WordPress database abstraction layer XSS Protection: Output escaping and content filtering Performance Caching: Intelligent caching of frequently accessed data Internationalization Translation Ready: Full support for translation and localization RTL Support: Right-to-left language compatibility Professional Labels: User-friendly activity type descriptions Context-Aware Strings: Proper string contexts for accurate translations Advanced Configuration Custom Hooks and Filters Available Action Hooks: * bp_activity_filter_init – Plugin initialization * bp_activity_filter_settings_saved – After settings save * bp_activity_filter_cpt_activity_created – When CPT activity is created Available Filter Hooks: * bp_activity_filter_default – Modify default filter value * bp_activity_filter_available_filters – Customize available filters * bp_activity_filter_query_args – Modify activity query arguments * bp_activity_filter_eligible_post_types – Filter eligible CPTs Custom Post Type Configuration `php // Enable activity for custom post type programmatically add_filter( ‘bp_activity_filter_eligible_post_types’, function( $post_types ) { $post_types[‘my_custom_type’] = get_post_type_object( ‘my_custom_type’ ); return $post_types; }); // Customize activity action text add_filter( ‘bp_activity_filter_cpt_activity_action’, function( $action, $post, $label ) { if ( ‘my_custom_type’ === $post->post_type ) { $action = sprintf( ‘%s shared a new %s’, get_author_name(), $label ); } return $action; }, 10, 3 ); ` Performance Optimization The plugin includes several performance optimizations: Query Caching: Activity actions are cached to reduce database calls Smart Loading: Scripts only load on relevant pages Minimal Footprint: Optimized code with efficient algorithms Database Optimization: Indexed queries and reduced overhead Troubleshooting Common Issues: Activities not filtering: Check BuddyPress version compatibility Settings not saving: Verify user permissions and nonce verification Custom post types not showing: Ensure post types meet eligibility criteria Theme conflicts: Test with default BuddyPress theme Debug Mode: Enable WordPress debug mode to see detailed error messages: php define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); Support For support, documentation, and feature requests: Documentation: Plugin Documentation Support Forum: WordPress.org Support Premium Support: Wbcom Designs Support GitHub: Development Repository Contributing We welcome contributions! Please see our GitHub repository for development guidelines and to submit pull requests. Ways to Contribute: * Report bugs and suggest features * Submit translations * Contribute code improvements * Help with documentation * Test beta releases Privacy Policy This plugin does not collect or store any personal user data beyond what WordPress and BuddyPress already collect. Activity filtering preferences are stored locally in browser cookies and user meta fields as needed for functionality. Credits Developed by Wbcom Designs – Your trusted WordPress development partner. Special thanks to the BuddyPress community for feedback and contributions that made this plugin possible.
Top keywords
- activity42×4.87%
- post21×2.43%
- filter19×2.20%
- custom14×1.62%
- types14×1.62%
- buddypress13×1.51%
- default12×1.39%
- type12×1.39%
- post types11×1.27%
- activities10×1.16%
- activity filter10×1.16%
- bp9×1.04%
Smush – Image Optimization, Compression, Lazy Load, WebP & CDN
Compress images, optimize images, and enable image lazy load automatically with the powerful Smush image optimizer to keep your WordPress site fast, without losing quality. Smush makes it easy to optimize images, compress images, and deliver images faster across your entire WordPress site. This all-in-one image optimizer automatically reduces image file sizes, enables image lazy load, and serves modern formats like WebP and AVIF, all without breaking image quality or adding extra work. Whether you’re running a blog, store, or portfolio, Smush helps you optimize images at scale and keep your site fast with a trusted WordPress image optimizer. Trusted by 1+ Million Sites | 4.8/5 Star Rating Get everything you need to optimize images and speed up your site. Smush works out of the box with no complicated setup – just install and let it handle the rest. Compress images without losing quality Reduce image file size automatically while keeping your images sharp and clear. Smush is an easy-to-use image optimizer which let’s you compress images using both lossless and lossy compression, giving you the best balance of quality and performance without extra work. You can also compress images outside the media library using Directory Smush, making it easy to optimize images stored in theme folders, plugins, or other directories on your server. Lazy load images for faster pages Enable image lazy load across your site so images load only when needed. This image optimizer improves initial page speed and creates a smoother experience for visitors without extra configuration. Serve WebP and AVIF images automatically (PRO) Convert images to WebP and AVIF and serve them automatically to supported browsers. Smush helps you optimize images using next-gen formats to reduce file size and improve load times across your WordPress site. Deliver images faster with an Image CDN (PRO) Serve images through a global image CDN to reduce latency and improve load times for visitors around the world. 119 global CDN servers Up to 500 GB of bandwidth Faster image delivery based on visitor location Improved performance for image-heavy and high-traffic sites Automatically resize and fix image dimensions (PRO) Eliminate common PageSpeed warnings and improve layout stability with automatic image sizing. Smush dynamically resizes images to perfectly fit their containers, regardless of original size, helping fix the “Properly size images” warning in Google PageSpeed Insights. It also automatically adds missing width and height attributes to your images, improving rendering speed and reducing layout shifts. This helps you meet the “Ensure images have explicit width and height” recommendation without any manual work. Optimize your entire site, automatically Smush works across your whole site as a powerful image optimizer to optimize images as you upload them and maintain performance over time without manual work. Optimize images automatically on upload Compress images in bulk or individually Works with your existing media library No need to re-upload images Enable image lazy load across your site Convert images to WebP and AVIF Deliver images with an integrated image CDN Automatically resize and serve correctly sized images Optimize images outside the media library with Directory Smush Built for performance Smush improves page speed and overall performance by reducing image weight and improving how images are delivered. Reduce page load times Improve user experience Better performance for image-heavy pages Supports image lazy load and preload images (PRO) for faster perceived performance Works with your existing setup Smush is built to work with your current WordPress setup, including popular themes, page builders, and plugins. Compatible with Gutenberg, Elementor, WPBakery, and more Works with WooCommerce stores No need to change your workflow Easy to enable and configure Designed to be simple You don’t need to be a performance expert to optimize images with Smush image optimizer. Works out of the box Simple settings when you need them No technical knowledge required Safe to use on any site Why choose Smush? There are plenty of image optimization plugins, but Smush focuses on making it easy to optimize images, compress images, and improve performance without complexity. As a leading WordPress image optimizer, Smush gives you powerful optimization tools without the technical hassle. Trusted by over 1 million WordPress users Built specifically for WordPress Regular updates and improvements Backed by the WPMU DEV team Get started in minutes Install Smush, activate it, and start to compress images, optimize images, and enable image lazy load right away. This easy-to-use image optimizer helps most sites see improvements immediately without changing how they upload or manage images. About Us WPMU DEV is a premium supplier of quality WordPress plugins, services and support. Learn more here: https://wpmudev.com/ Don’t forget to stay up to date on everything WordPress from the Internet’s number one resource: WPMU DEV Blog Hey, one more thing… we hope you enjoy our free offerings as much as we’ve loved making them for you! Contact and Credits Originally written by Alex Dunae at Dialect (dialect.ca, e-mail ‘alex’ at ‘dialect dot ca’), 2008-11.