| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Plugin Name: BetterDocs |
| 5 |
* Plugin URI: https://betterdocs.co/ |
| 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.5.6 |
| 8 |
* Requires at least: 6.4 |
| 9 |
* Requires PHP: 7.4 |
| 10 |
* Author: WPDeveloper |
| 11 |
* Author URI: https://wpdeveloper.com |
| 12 |
* License: GPL-3.0+ |
| 13 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt |
| 14 |
* Text Domain: betterdocs |
| 15 |
* Domain Path: /languages |
| 16 |
*/ |
| 17 |
|
| 18 |
// If this file is called directly, abort. |
| 19 |
use WPDeveloper\BetterDocs\Plugin; |
| 20 |
|
| 21 |
defined( 'ABSPATH' ) || exit; |
| 22 |
|
| 23 |
define( 'BETTERDOCS_PLUGIN_FILE', __FILE__ ); |
| 24 |
|
| 25 |
require_once __DIR__ . '/includes/v2x-compatibility.php'; |
| 26 |
require_once __DIR__ . '/vendor/autoload.php'; |
| 27 |
|
| 28 |
/** |
| 29 |
* Initiate the BetterDocs Plugin |
| 30 |
* |
| 31 |
* @return Plugin |
| 32 |
* @since 2.5.0 |
| 33 |
*/ |
| 34 |
function betterdocs(): Plugin { |
| 35 |
/** |
| 36 |
* Remove PRO Functionalities if pro is not updated. |
| 37 |
*/ |
| 38 |
if ( ! function_exists( 'betterdocs_pro' ) ) { |
| 39 |
remove_action( 'betterdocs_init', 'run_betterdocs_pro' ); |
| 40 |
} |
| 41 |
|
| 42 |
return Plugin::get_instance(); |
| 43 |
} |
| 44 |
|
| 45 |
/** |
| 46 |
* Initialize BetterDocs (Free) |
| 47 |
* Here, begins the execution of the plugin. |
| 48 |
* |
| 49 |
* Returns the main instance of BetterDocs. |
| 50 |
* |
| 51 |
* @return Plugin |
| 52 |
* @since 3.0 |
| 53 |
*/ |
| 54 |
|
| 55 |
betterdocs(); |
| 56 |
|