
內容簡介
將 Google reCaptcha 加入到網誌文章的評論區。需要 Google reCaptcha v2 核取方塊 API 金鑰。
透過管理設定頁面進行簡單的配置:
* reCaptcha 公鑰
* reCaptcha 私鑰
* 啟用 reCaptcha(所有人 | 訪客 | 關閉 [禁用])
開發人員可使用的額外 hooks:
$v = apply_filters(‘f13_recaptcha_add’);
會將 reCaptcha 核取方塊放置在所需的地方。
$validate = apply_filters(‘f13_recaptcha_validate’);
if (!empty($validate)) {
$v = $validate
// reCaptcha 驗證失敗
} else {
// reCaptcha 驗證成功
}
外掛標籤
開發者團隊
原文外掛簡介
Add Google reCaptcha to the comments section on blog posts. Requires Google reCaptcha v2 Checkbox API key.
Simple configuration via the admin settings page:
* reCaptcha public key
* reCaptcha private key
* enable reCaptcha for (Everyone | Visitors | Nobody [disabled])
Additional hooks for programmers:
$v = apply_filters(‘f13_recaptcha_add’);
Will place a reCaptcha checkbox in the desired place.
$validate = apply_filters(‘f13_recaptcha_validate’);
if (!empty($validate)) {
$v = $validate
// reCaptcha failed
} else {
// reCaptcah passed
}
