前言介紹
- 這款 WordPress 外掛「Commenter Emails」是 2009-06-14 上架。 目前已經下架不再更新,不建議安裝使用。
- 目前有 600 個安裝啟用數。
- 上一次更新是 2020-07-07,距離現在已有 1762 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.1 以上版本才可以安裝。
- 有 9 人給過評分。
- 論壇上目前有 1 個提問,問題解答率 0%
外掛協作開發者
外掛標籤
email | address | contact | commenter | commenters |
內容簡介
這款 WordPress 外掛可以讓管理員在後台新增頁面 留言 -> 留言者電子信箱 查看以下資訊:
該網站所有不重複留言者的總數
每位留言者的電子郵件、名字和提供的網站 URL (依不重複計算)
下載以上提到的所有留言者的電子郵件清單,格式為 CSV(逗號分隔值)格式,此外可以選擇下載他們的網站 URL
此外,此外掛不會從清單中排除已知的電子郵件地址(例如管理員和發佈者的電子郵件地址)。
這個外掛還提供了 6 個 Hooks,其中包括了能夠自定義是否顯示 CSV 下載按鈕、是否顯示電子郵件清單等功能,您可以利用這些 Hooks 來進行相關的設定。
詳細資訊請參閱此外掛頁面:Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage
原文外掛簡介
Via the admin page added by the plugin, Comments -> Commenter Emails, admin users are presented with the following information:
A total count of all unique commenters to the site
The entire list of each unique commenters’ email addresses, names, and provided website URLs
A button to download the entire list of unique commenters’ email addresses (and, optionally, their website URL) in CSV (comma-separated values) format
The plugin only considers approved comments and does not exclude from its listing any known email addresses (i.e. admin and post author email addresses).
Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage
Hooks
The plugin exposes six filters for hooking. Code using these filters should ideally be put into a mu-plugin or site-specific plugin (which is beyond the scope of this readme to explain). Less ideally, you could put them in your active theme’s functions.php file.
c2c_commenter_emails_show_csv_button (filter)
The ‘c2c_commenter_emails_show_csv_button’ hook allows you to customize whether the button to download a CSV file of the commenter emails list should be present on the plugin’s admin settings page. By default this is true.
Arguments:
$show_button (bool): Whether the download button is shown; it is ‘true’ by default.
Example:
// Disable the download button
add_filter( 'c2c_commenter_emails_show_csv_button', '__return_false' );
c2c_commenter_emails_show_emails (filter)
The ‘c2c_commenter_emails_show_emails’ hook allows you to customize whether the listing of emails should appear on the plugin’s admin settings page. By default this is true.
Arguments:
$show_emails (bool): Whether the listing of emails is shown’ it is ‘true’ by default.
Example:
// Disable showing the emails listing
add_filter( 'c2c_commenter_emails_show_emails', '__return_false' );
c2c_commenter_emails_filename (filter)
The ‘c2c_commenter_emails_filename’ hook allows you to customize the name used for the .csv file when being downloaded. By default this is ‘commenter-emails.csv’.
Arguments:
$filename (string): The filename. By default this is ‘commenter-emails.csv’.
Example:
/**
* Change the default filename to embed today's date for the Commenter Emails plugin.
*
* @param string $filename The filename for the CSV file.
* @return string.
*/
function change_ce_filename( $filename ) {
$date = date('m-d-Y', strtotime('today')); // Get today's date in m-d-Y format (i.e. 02-25-2010)
return "emails-$date.csv";
}
add_filter( 'c2c_commenter_emails_filename', 'change_ce_filename' );
manage_commenter_emails_options (filter)
The ‘manage_commenter_emails_options’ hook allows you to customize the capability required to access the commenter emails admin page. You should be certain that you’ve created the capability and assigned that capability to the desired user(s). By default this is the ‘manage_options’ capability.
Arguments:
$options (string): Capability name. By default this is the ‘manage_options’ capability.
Example:
/**
* Change the capability needed to see the Commenter Emails admin page for the Commenter Emails plugin.
*
* @param string $capability The necessary capability.
* @return string
*/
function change_ce_cap( $capability ) {
return 'manage_commenter_emails';
}
add_filter( 'manage_commenter_emails_options', 'change_ce_cap' );
c2c_commenter_emails_fields (filter)
The ‘c2c_commenter_emails_fields’ hook allows you to customize the user fields included in the download CSV file. By default the CSV file includes comment_author and comment_author_email.
Arguments:
$fields (array): Array of field names. Items must correspond to columns in the comments table. By default this is array( 'comment_author', 'comment_author_email' ). Whether explicitly included or not, ‘comment_author_email’ will always be output in the CSV.
Example:
/**
* Include the commenter's IP address in the download CSV for the Commenter Emails plugin.
*
* @param array $fields The comment email fields to include in the CSV output.
* @return array
*/
function change_ce_fields( $fields ) {
$fields[] = 'comment_author_IP';
return $fields;
}
add_filter( 'c2c_commenter_emails_fields', 'change_ce_fields' );
c2c_commenter_emails_field_separator (filter)
The ‘c2c_commenter_emails_field_separator’ hook allows you to customize the separator used in the CSV file.
Arguments:
$separator (string): String to be used as the data separator in the CSV file. Default is ‘,’.
Example:
/**
* Change the data fields separator to '|' for Commenter Emails plugin.
*
* @param string $separator The defautl separator.
* @return string
*/
function change_ce_field_separator( $separator ) {
return '|';
}
add_filter( 'c2c_commenter_emails_field_separator', 'change_ce_field_separator' );
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Commenter Emails」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.1 | 1.2 | 1.3 | 2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 2.6 | 2.2.1 | 2.4.1 | 2.5.1 | 2.6.1 | trunk |
延伸相關外掛(你可能也想知道)
Custom Post Type Permalinks 》自訂文章類型永久連結允許您編輯自訂文章類型的永久連結結構。, 更改自訂分類目錄的永久鏈接,以“example.org/post_type/taxonomy_name/term_slug̶...。
Custom Permalinks 》name or slug), add the filter that looks like this:, function yasglobal_exclude_posts( $post ) {, // Replace '2' with ID of the post you want to ...。
Simple Map 》使用gmaps.js輕鬆嵌入 Google 地圖的外掛程式。, 這個外掛程式允許您將地址轉換成類似下面的 Google 地圖:, [map]加州舊金山[/map], , 另一種方法是只用 URL...。
Five Star Business Profile and Schema 》此外掛可以在網站的任何頁面或文章類型上加入 schema 結構化資料,也輕易地創建一張聯絡卡片,並加上正確的結構化資料。讓你的網站增加 SEO 友好的 Schema.or...。
Speed Contact Bar 》讓您的網站訪客輕鬆聯繫您,提供永久可見的聯繫方式。, 外掛有英文、西班牙文 (Español)、俄語 (ру́сский)、德文 (Deutsch)、波蘭文 (Polski)等多種語言版本...。
Portugal States (Distritos) for WooCommerce 》這個外掛可為 WooCommerce 新增 18 個葡萄牙「州」(被稱為「Distritos」),以及兩個自治區(被稱為「Regiões Autónomas」,分別是馬德拉和亞速爾群島)。, ...。
WooCommerce Address Book 》本外掛給予您的顧客存儲多個帳單和送貨地址的選項,並在結帳時檢索它們。地址可以在/my-account/中快速方便地更新和修改,或者在結帳過程中保存。, 如果您想...。
WooCommerce Email Validation 》「WooCommerce Email Validation」是一個針對 WooCommerce 的外掛程式,可以在結帳頁面加入「確認電子郵件地址」欄位,並將其設為必填欄位。這可以確保您的顧...。
Address Autocomplete via Google for Gravity Forms 》這是一個簡單且好用的外掛程式,可以在 Gravity Form 地址欄位中使用 Google 地址自動建議 API 。如果安裝完成後,請進入 Gravity Form 的選單 ‘Autoco...。
Woocommerce autocomplete checkout address 》這個外掛程式是為了 WooCommerce 結帳時的地址欄位而設計的,它可以幫助您在 Google 上找到地址。, 功能:, 地址建議相關於選定的國家。, 與 WooCommerce 所...。
More Widgets 》WordPress的More Widgets外掛程式為你的WordPress站台的小工具範圍提供額外的小工具。使用此外掛程式來替代內建主題的小工具,這樣當你切換主題時,你的小工...。
Enhanced Custom Permalinks 》這個外掛程式是 Custom-Permalinks 外掛程式的分支,除了修正一些擴充的錯誤之外,還可以與 WP-no-category-base 外掛程式互相操作。, 這個外掛程式讓你更精...。
Embed Google Map 》Embed Google Map 是一款在 WordPress 文章、頁面、文字小工具以及模板中嵌入一個或多個 Google 地圖的外掛。添加地圖非常簡單,只需將您想在地圖上顯示的位...。
BP xProfile Location 》此外掛可與「BuddyPress」和「BuddyBoss 平台」搭配使用。它會建立「xProfile 位置」欄位類型,使用 Google Places API 來填寫和驗證會員檔案上的地址欄位。,...。
Address correction autocomplete for Woo 》這個針對 WooCommerce 的外掛程式使用 Google API 實現自動地址校正,並且應用在結帳流程中。, 功能特色, , 地址建議會根據所選擇的國家提供。, 與 WooCommer...。