[WordPress] 外掛分享: Post Engagement Widget

WordPress 外掛 Post Engagement Widget 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Post Engagement Widget」是 2025-10-26 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2025-11-27,距離現在已有 92 天。
  • 外掛最低要求 WordPress 5.5 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

vijayparihar002 |

外掛標籤

like | vote | rating | Dislike | engagement |

內容簡介

總結:Post Engagement Widget 提供了一個簡單而強大的方式來收集使用者對內容的反饋。這個外掛設計輕量且易於使用,讓您輕鬆地在文章和評論上添加美觀、AJAX 強化的讚和不喜歡按鈕,鼓勵訪客與您網站互動。

1. 這個外掛的主要功能有哪些?
- AJAX 強化的投票功能,無需頁面重新加載。
- 讓文章和評論都可以添加讚和不喜歡按鈕。
- 可選擇允許未登錄使用者投票,並使用 Cookie 防止重覆投票。
- 提供完整的自定義功能,您可以根據主題的設計使用內建的顏色選擇器來調配按鈕外觀。
- 可選擇使用經典的「讚/不喜歡」文字或現代的👍/👎表情標籤。
- 自動在文章結尾添加投票按鈕。
- 通用的縮碼,讓您可以手動在任何頁面、產品或自訂文章類型中放置按鈕。
- 在刪除外掛時,自動清除所有設置和數據,不留下任何蹤跡。
- 提供完整的操作和過濾器集合以便於高級自定義。

2. 開發者提供了哪些進階自定義功能?
- 可以透過增加 filters 修改自動顯示按鈕的文章類型清單。
- 例如增加支持 'portfolio' 這一自定義文章類型的投票功能。

原文外掛簡介

The Post Engagement Widget provides a simple yet powerful way to gather user feedback on your content. With just a few clicks, you can add beautiful, AJAX-powered Like and Dislike buttons to your posts and comments, encouraging visitors to interact with your site.
The plugin is designed to be lightweight and easy to use. The settings panel gives you full control over colors, labels, and display rules, while the included shortcode allows you to place the voting buttons anywhere you want.
Key Features for Initial Release:

AJAX-Powered Voting: No page reloads. The interface updates instantly for a smooth, modern user experience.
Post & Comment Engagement: Add like/dislike buttons to both posts and comments right out of the box.
Guest Voting: Optionally allow non-logged-in users to vote (uses cookies to prevent duplicate votes).
Full Customization: Use the built-in color pickers to match the buttons to your theme’s design.
Emoji or Text Labels: Choose between classic “Like/Dislike” text or modern 👍/👎 emoji labels.
Automatic Display on Posts: Automatically add voting buttons to the end of all your blog posts with a single checkbox.
Universal Shortcode: Use the [engage_widgetment_widget] shortcode to manually place buttons on any page, product, or custom post type.
Clean Uninstall: When you delete the plugin, it cleans up all its settings and data from your database, leaving no trace behind.
Developer Friendly: Highly extensible with a complete set of actions and filters for advanced customization.

For Developers (Advanced Customization)
We’ve included several hooks to allow you to extend the plugin’s functionality. Here are some examples of what you can do.
Filters
engage_widget_auto_display_post_types
Modify the list of post types where buttons are automatically displayed.
add_filter( 'engage_widget_auto_display_post_types', 'add_my_cpt_for_voting' );
function add_my_cpt_for_voting( $post_types ) {
// Add support for a 'portfolio' custom post type
$post_types[] = 'portfolio';
return $post_types;
}

engage_widget_render_buttons_html
Filter the final HTML of the buttons for posts.
add_filter( 'engage_widget_render_buttons_html', 'my_custom_post_buttons_wrapper', 10, 2 );
function my_custom_post_buttons_wrapper( $html, $post_id ) {
return '

' . $html . '

';
}

engage_widget_render_comment_buttons_html
Filter the final HTML of the buttons for comments.
add_filter( 'engage_widget_render_comment_buttons_html', 'my_custom_comment_buttons_wrapper', 10, 2 );
function my_custom_comment_buttons_wrapper( $html, $comment_object ) {
return '

' . $html . '

';
}

engage_widget_user_can_vote
Add custom permission logic to prevent a vote. Return false to block the vote.
add_filter( 'engage_widget_user_can_vote', 'prevent_voting_on_own_post', 10, 4 );
function prevent_voting_on_own_post( $permission, $item_type, $item_id, $user_id ) {
if ( $item_type === 'post' && $user_id > 0 ) {
if ( get_post_field( 'post_author', $item_id ) == $user_id ) {
return false; // Prevent users from voting on their own posts
}
}
return $permission;
}

Actions
engage_widget_after_vote_processed
Fire a custom action after a vote is successfully recorded.
add_action( 'engage_widget_after_vote_processed', 'my_custom_action_on_vote', 10, 4 );
function my_custom_action_on_vote( $item_type, $item_id, $vote, $user_id ) {
if ( $item_type === 'post' && $vote === 'like' ) {
// Example: Send a notification or update a transient
error_log( "User {$user_id} liked post {$item_id}." );
}
}

engage_widget_after_settings_fields
Add your own custom fields to the plugin’s settings page.
add_action( 'engage_widget_after_settings_fields', 'my_custom_engage_widget_setting' );
function my_custom_engage_widget_setting( $settings ) {
// HTML for your new setting field
}

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Post Engagement Widget」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | trunk |

延伸相關外掛(你可能也想知道)

  • WP ULike – Like & Dislike Buttons for Engagement and Feedback 》作為一個內容創建者,收到反饋是至關重要的,但不幸的是,預設情況下可以收集反饋的內容類型有所限制。然而,在 WP ULike 外掛的幫助下,可以對您網站上的任...。
  • Favorites 》取得函式: get_favorites_button($post_id, $site_id), 列印函式: the_favorites_button($post_id, $site_id), 短代碼: [favorite_button post_id="" site...。
  • Comments Like Dislike 》Comments Like Dislike 是一款免費的 WordPress 外掛,可啟用預設 WordPress 評論的「讚」和「踩」圖示。您可以選擇大拇指向上或向下、微笑或傷心、勾或叉,...。
  • I Recommend This 》這個外掛允許您的訪客簡單地喜歡/推薦您的文章而不是對其進行評論。, I Recommend This 的功能, , 一個計數器,用於顯示“喜歡”的數量和投票。, 一個小工具和...。
  • Posts Like Dislike 》Posts Like Dislike 是一個免費的WordPress外掛,可啟用預設WordPress文章或任何其他文章類型的「喜歡」和「不喜歡」圖示。選擇「大拇指向上」或「大拇指向下...。
  • Social Sharing Toolkit 》ton, you need to enter the URL for your RSS feed., , 分享內容, 插件目前支援以下社交網站分享您的內容:, , Facebook(按讚、分享和傳送按鈕), Twitter,...。
  • Simple Light Weight Social Share (Tweet, Like, Share and Linkedin) 》一個非常簡單的社交分享外掛,只有 4 個社交圖標。99% 的文章都是使用這 4 個社交圖標進行分享(即 Twitter、FB Like、Linkedin 和 FB Share),所以為什麼需...。
  • BestWebSoft's Like & Share – Posts, Pages and Widget Social Extension plugin for WordPress 》Like & Share 外掛是最佳的社交媒體解決方案,可以在您的 WordPress 網站的文章、頁面或小工具上添加追蹤、喜歡和分享按鈕,這是接收訪問者的正面反饋、...。
  • WP Like Button 》WP Like button 可讓您在WordPress部落格上添加Facebook「讚」按鈕。您還可以添加「分享」按鈕或「推薦」按鈕。, 功能特色, , 為網站、粉絲頁或各個文章和頁...。
  • Like Button Rating ♥ LikeBtn 》「Like Button Rating」外掛可以讓您在以下地方加入一個看起來很酷、且完全可客製化的 Like 按鈕:, , 文章, 頁面, 留言, WooCommerce 產品, BuddyPress 活動...。
  • Kodex Posts likes 》"Kodex Posts Likes" 外掛可讓您的訪客和已登入使用者對您的文章、頁面和自訂文章類型按讚或按不喜歡。, 此外掛使用 AJAX 介面,介面乾淨且完全可自訂。, 按...。
  • GD Rating System 》GD Rating System 是 GD Star Rating 外掛的接班人,但與舊版外掛沒有任何相似之處。GD Rating System 使用模組化結構,大多數功能都分成插件和評分方法兩種...。
  • Solid Post Likes 》這個外掛可讓你在所有文章類型中添加可自定義的 “ 讚 ” 按鈕,支援所有自定義文章類型和所有 WooCommerce 產品類型,同時亦支援文章評論。, 此按鈕使用相同的...。
  • Smartest Way To Design & Customize WordPress Comments & Comment Form – WP Comment Designer Lite 》wnload, please visit the Demo page or the Documentation page. For support, please contact AccessPress Themes Support. There is also a premium versi...。
  • GamiPress – WP Ulike integration 》通過功能強大的遊戲化外掛程式GamiPress,讓您的WP Ulike互動更加有趣!, 此外掛會自動連接GamiPress和WP Ulike,添加新的活動事件。, 新事件, , 喜歡任何內...。

文章
Filter
Apply Filters
Mastodon