PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.2.6
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.2.6
4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 3.5.2 All 199 releases
← All changes | betterdocs.php +8 -48 4.9.04.2.6 View file →
@@ -3,11 +3,9 @@
3 3 /**
4 4 * Plugin Name: BetterDocs
5 5 * Plugin URI: https://betterdocs.co/
6 6 * Description: Create stunning Knowledge base & FAQs for your WordPress website and reduce support pressure with the help of BetterDocs. Get access to amazing templates and create fully customizable KB with AI Write.
7 - * Version: 4.9.0
8 - * Requires at least: 6.4
9 - * Requires PHP: 7.4
7 + * Version: 4.2.6
10 8 * Author: WPDeveloper
11 9 * Author URI: https://wpdeveloper.com
12 10 * License: GPL-3.0+
13 11 * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
@@ -24,48 +22,10 @@
24 22
25 23 require_once __DIR__ . '/includes/v2x-compatibility.php';
26 24 require_once __DIR__ . '/vendor/autoload.php';
27 25
28 -/**
29 - * Bundled MCP runtime (WordPress Abilities API + Parsedown).
30 - *
31 - * Loaded through the Jetpack Autoloader so that if the same library is also
32 - * shipped by another plugin — or lands in WordPress core — the newest copy
33 - * wins and loads once, with no fatal class collisions. This lets BetterDocs
34 - * serve its MCP connector out of the box, without the standalone Abilities
35 - * API plugin. See docs/mcp-server.md for the update procedure.
36 - *
37 - * On WordPress 7.1+, where core ships the Abilities API itself, Runtime::init()
38 - * stands the bundled copy down so it stops duplicating core's REST routes and
39 - * admin assets; on 6.4-7.0 the bundle is the only API and is left untouched.
40 - *
41 - * @since 4.9.0
42 - */
43 -$betterdocs_mcp_runtime = __DIR__ . '/dependencies/vendor/autoload_packages.php';
44 -if ( is_readable( $betterdocs_mcp_runtime ) ) {
45 - require_once $betterdocs_mcp_runtime;
46 26
47 - \WPDeveloper\BetterDocs\Abilities\Runtime::init();
48 -}
49 -unset( $betterdocs_mcp_runtime );
50 -
51 27 /**
52 - * Declare WooCommerce HPOS (custom order tables) compatibility. BetterDocs
53 - * never touches order storage, so this is a pure compatibility flag. Must run
54 - * on before_woocommerce_init — the Plugin bootstraps on `init`, which is too
55 - * late for WooCommerce to read the declaration.
56 - */
57 -add_action( 'before_woocommerce_init', function () {
58 - if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
59 - \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility(
60 - 'custom_order_tables',
61 - BETTERDOCS_PLUGIN_FILE,
62 - true
63 - );
64 - }
65 -} );
66 -
67 -/**
68 28 * Initiate the BetterDocs Plugin
69 29 *
70 30 * @return Plugin
71 31 * @since 2.5.0
@@ -70,16 +30,16 @@
70 30 * @return Plugin
71 31 * @since 2.5.0
72 32 */
73 33 function betterdocs(): Plugin {
74 - /**
75 - * Remove PRO Functionalities if pro is not updated.
76 - */
77 - if ( ! function_exists( 'betterdocs_pro' ) ) {
78 - remove_action( 'betterdocs_init', 'run_betterdocs_pro' );
79 - }
34 + /**
35 + * Remove PRO Functionalities if pro is not updated.
36 + */
37 + if ( ! function_exists( 'betterdocs_pro' ) ) {
38 + remove_action( 'betterdocs_init', 'run_betterdocs_pro' );
39 + }
80 40
81 - return Plugin::get_instance();
41 + return Plugin::get_instance();
82 42 }
83 43
84 44 /**
85 45 * Initialize BetterDocs (Free)