跳到内容

Gator Gate Pre

v1.0.0

tinwho · 2026年11月7日 上架

Simple, robust preformatted code block support for the bbPress visual editor.

正在使用
10 以下
评分
暂无
累计下载
330
最近更新
2026年11月7日
需要 WordPress 5.8+已测试到 7.1.5PHP 7.4+

贡献者

截图

Enable Visual Editor
Enable Visual Editor

Gator Gate Pre for bbPress adds reliable Visual Editor <pre> 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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums