Linux 软件免费装

Gator Gate Pre

开发者 tinwho
更新时间 2026年11月7日 12:55
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

tinymce code bbpress pre visual-editor

下载

1.0.0

详情介绍:

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: 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 );