PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.2.0
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.2.0
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 +15 -13 3.5.04.2.0 View file →
@@ -2,10 +2,10 @@
2 2
3 3 /**
4 4 * Plugin Name: BetterDocs
5 5 * Plugin URI: https://betterdocs.co/
6 - * Description: Create stunning Knowledge base 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: 3.5.0
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.2.0
8 8 * Author: WPDeveloper
9 9 * Author URI: https://wpdeveloper.com
10 10 * License: GPL-3.0+
11 11 * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
@@ -13,8 +13,10 @@
13 13 * Domain Path: /languages
14 14 */
15 15
16 16 // If this file is called directly, abort.
17 +use WPDeveloper\BetterDocs\Plugin;
18 +
17 19 defined( 'ABSPATH' ) || exit;
18 20
19 21 define( 'BETTERDOCS_PLUGIN_FILE', __FILE__ );
20 22
@@ -22,22 +24,22 @@
22 24 require_once __DIR__ . '/vendor/autoload.php';
23 25
24 26
25 27 /**
26 - * Intiate the BetterDocs Plugin
28 + * Initiate the BetterDocs Plugin
27 29 *
30 + * @return Plugin
28 31 * @since 2.5.0
29 - * @return \WPDeveloper\BetterDocs\Plugin
30 32 */
31 -function betterdocs() {
32 - /**
33 - * Remove PRO Functionalities if pro is not updated.
34 - */
35 - if( ! function_exists('betterdocs_pro') ){
36 - remove_action( 'betterdocs_init', 'run_betterdocs_pro' );
37 - }
33 +function betterdocs(): Plugin {
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 + }
38 40
39 - return \WPDeveloper\BetterDocs\Plugin::get_instance();
41 + return Plugin::get_instance();
40 42 }
41 43
42 44 /**
43 45 * Initialize BetterDocs (Free)
@@ -44,9 +46,9 @@
44 46 * Here, begins the execution of the plugin.
45 47 *
46 48 * Returns the main instance of BetterDocs.
47 49 *
50 + * @return Plugin
48 51 * @since 3.0
49 - * @return \WPDeveloper\BetterDocs\Plugin
50 52 */
51 53
52 54 betterdocs();