| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Plugin Name: BetterDocs |
| 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 within minutes. |
| 7 |
* Version: 3.0.0 |
| 8 |
* Author: WPDeveloper |
| 9 |
* Author URI: https://wpdeveloper.com |
| 10 |
* License: GPL-3.0+ |
| 11 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt |
| 12 |
* Text Domain: betterdocs |
| 13 |
* Domain Path: /languages |
| 14 |
*/ |
| 15 |
|
| 16 |
// If this file is called directly, abort. |
| 17 |
defined( 'ABSPATH' ) || exit; |
| 18 |
|
| 19 |
define( 'BETTERDOCS_PLUGIN_FILE', __FILE__ ); |
| 20 |
|
| 21 |
require_once __DIR__ . '/includes/v2x-compatibility.php'; |
| 22 |
require_once __DIR__ . '/vendor/autoload.php'; |
| 23 |
|
| 24 |
// register_block_pattern( |
| 25 |
// 'betterdocs/doc-category-archive', |
| 26 |
// array( |
| 27 |
// 'title' => __( 'Doc Category Archive', 'textdomain' ), |
| 28 |
// 'description' => _x( 'This is my first block pattern', 'Block pattern description', 'textdomain' ), |
| 29 |
// 'content' => '<!-- wp:paragraph --><p>A Simple Doc Category Archive</p><!-- /wp:paragraph -->', |
| 30 |
// 'categories' => array( 'text' ), |
| 31 |
// 'keywords' => array( 'cta', 'demo', 'example' ), |
| 32 |
// 'viewportWidth' => 800, |
| 33 |
// ) |
| 34 |
// ); |
| 35 |
|
| 36 |
/** |
| 37 |
* Intiate the BetterDocs Plugin |
| 38 |
* |
| 39 |
* @since 2.5.0 |
| 40 |
* @return \WPDeveloper\BetterDocs\Plugin |
| 41 |
*/ |
| 42 |
function betterdocs() { |
| 43 |
/** |
| 44 |
* Remove PRO Functionalities if pro is not updated. |
| 45 |
*/ |
| 46 |
if( ! function_exists('betterdocs_pro') ){ |
| 47 |
remove_action( 'betterdocs_init', 'run_betterdocs_pro' ); |
| 48 |
} |
| 49 |
|
| 50 |
return \WPDeveloper\BetterDocs\Plugin::get_instance(); |
| 51 |
} |
| 52 |
|
| 53 |
/** |
| 54 |
* Initialize BetterDocs (Free) |
| 55 |
* Here, begins the execution of the plugin. |
| 56 |
* |
| 57 |
* Returns the main instance of BetterDocs. |
| 58 |
* |
| 59 |
* @since 3.0 |
| 60 |
* @return \WPDeveloper\BetterDocs\Plugin |
| 61 |
*/ |
| 62 |
|
| 63 |
betterdocs(); |
| 64 |
|