Activity Link Preview For BuddyPress

Activity Link Preview For BuddyPress

توسط

Activity Link Preview For BuddyPress automatically generates beautiful link previews when users share URLs in BuddyPress activity posts and comments. The plugin fetches Open Graph data (image, title, description) from shared links and displays them in an attractive card format.

Key Features

  • Automatic Link Detection – Detects URLs as users type in the activity form
  • Rich Previews – Displays title, description, and featured image from shared links
  • Comment Support – Link previews work in activity comments and replies
  • Social Media Embeds – Special handling for Twitter/X, Facebook, YouTube, and more
  • Short URL Support – Resolves shortened URLs (bit.ly, tinyurl, etc.)
  • Caching – Previews are cached for better performance
  • REST API Support – Link preview data available via BuddyPress REST API
  • Developer Friendly – Filters to customize or disable functionality

Supported Platforms

  • Twitter/X – Native tweet embeds
  • Facebook – Native post embeds
  • YouTube – Video embeds via oEmbed
  • LinkedIn, Instagram, Reddit – Link previews
  • Any website with Open Graph meta tags

Requirements

  • WordPress 5.0 or higher
  • PHP 7.4 or higher
  • BuddyPress 6.0+ or BuddyBoss Platform
  1. Upload the buddypress-activity-link-preview folder to /wp-content/plugins/
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Ensure BuddyPress or BuddyBoss Platform is active
  4. Start sharing links in BuddyPress activities!

سوالات متداول

What are the plugin requirements?

The plugin requires:
* WordPress 5.0+
* PHP 7.4+
* BuddyPress 6.0+ OR BuddyBoss Platform

How do I disable link previews in comments?

Add this code to your theme’s functions.php:
add_filter( ‘bp_activity_link_preview_enable_comments’, ‘__return_false’ );

Can I disable previews for specific users?

Yes, use the filter conditionally:
add_filter( ‘bp_activity_link_preview_enable_comments’, function( $enabled ) {
if ( current_user_can( ‘administrator’ ) ) {
return false;
}
return $enabled;
});

Why doesn’t the preview show for some URLs?

Some websites block automated requests or don’t have Open Graph meta tags. The plugin requires websites to have proper og:title, og:description, or og:image meta tags.

Is the plugin secure?

Yes. The plugin includes:
* SSRF protection (blocks internal/private IPs)
* CSRF protection via nonce verification
* Proper input sanitization and output escaping
* User authentication requirements

Does it work with BuddyBoss?

Yes, the plugin is fully compatible with both BuddyPress and BuddyBoss Platform.

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
نسخه حجم فایل SHA256 تغییرات دانلود
1.7.3 123 کیلوبایت -
دانلود
×
★★★★★
★★★★★
4.0 /5 (5 نظر)

قیمت:

رایگان

نگارش

1.7.3

آخرین انتشار

20 اردیبهشت 1405

آخرین بروزرسانی

3 ماه پیش

نصب های فعال

100+

نگارش وردپرس

وردپرس 5.0+

تست شده از نسخه

وردپرس 6.9.4

نگارش PHP

PHP 7.4+

نسخه ها

1 نسخه