
內容簡介
管理員可以在前端設置默認和自定義的活動顯示。
此外,它還允許設置您的活動默認選項。您可以從“所有”更改默認選項為“發布更新”。該插件還允許您在自定義文章類型發布時啟用活動顯示。
此插件不適用於BuddyBoss平台🙁,您可以在他們的插件中找到類似的選項。
主題-支持出色的BuddyPress WordPress主題
免費BuddyPress主題:BuddyX - 提供獨特的佈局,乾淨的代碼和易於自定義的選項,讓您全新地視覺化BuddyPress。
我們的附加插件進一步改善您的BuddyPress或BuddyBoss平台社區
查看Wbcom Designs提供的免費社區附加插件:
Wbcom Designs-BuddyPress會員評論 允許成員向其他社區成員添加評分或反饋。
Wbcom Designs-BuddyPress小組評論 允許成員向BuddyPress小組添加評分或反饋。
Wbcom Designs-BuddyPress活動社交分享 允許成員在Facebook、Twitter、Whats App、LinkedIn等社交網絡上分享活動,並使用OG元數據。
Wbcom Designs-BP鎖定的私人社區 一個使您的社區私有且僅可由已登錄用戶訪問的插件。您也可以使選定的頁面或組件保持公開。
Wbcom Designs-BuddyPress工作管理器 允許您將WP Job Manager插件集成到BuddyPress中。
Wbcom Designs-BuddyPress活動簽到 允許成員添加自己的位置或發布活動簽到更新。
Wbcom Designs-BuddyPress收藏通知 允許成員在其BuddyPress活動獲得喜歡或收藏後接收通知。
Wbcom Designs-BuddyPress的短代码和Elementor部件 提供用於活動列表、成員目錄顯示和組目錄的短代码和Elementor部件。
查看Wbcom Designs提供的付費社區附加插件:
Wbcom Designs-BuddyPress哈希標籤 允許成員在BuddyPress或BuddyBoss平台活動和bbPress話題中使用哈希標籤。
Wbcom Designs-BuddyPress調查 允許您擴展BuddyPress或BuddyBoss平台活動,讓成員發布帶有各種選項的調查,並且完全適用於個人活動和小組活動。
Wbcom Designs-BuddyPress報價 允許成員使用互動式背景選擇(例如顏色和圖像)發布其活動更新。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
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.
