[WordPress] 外掛分享: Gator Gate Pre

首頁 › 外掛目錄 › Gator Gate Pre
全新外掛
安裝啟用
—
尚無評分
16 天前
最後更新
—
問題解決
WordPress 5.8+ PHP 7.4+ v1.0.0 上架:2026-11-06

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Gator Gate Pre」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Gator Gate Pre for bbPress adds reliable Visual Editor

 support to front-end bbPress topic and reply forms on a per-forum basis.
On each forum’s edit screen (Attributes metabox) you will find three checkboxes:

Enable Visual Editor — forces the visual editor on topic and reply forms for that forum.
Hide the Code tab — available only when the visual editor is enabled (UI convenience only).
Change line spacing — available only when the visual editor is enabled. Applies tighter line-height and paragraph/heading margins in the visual editor and on the front end of saved posts.

The Pre button and paste panel appear by default whenever the visual editor is enabled.
Other plugins (or a theme’s functions.php file) can control the Pre button with the gg_pre_show_pre_button filter:
// Hide the Pre button everywhere
add_filter( ‘gator_gate_pre_show_pre_button’, ‘__return_false’ );
// Force the Pre button on everywhere
add_filter( ‘gator_gate_pre_show_pre_button’, ‘__return_true’ );
// Target a specific forum ID
add_filter( ‘gator_gate_pre_show_pre_button’, function( $show, $forum_id ) {
if ( 123 === (int) $forum_id ) {
return false; // hide on forum 123
}
return $show;
}, 10, 2 );
Project Info
100% free plugin under the GPL license.

延伸相關外掛

文章
Filter
Mastodon