| @@ -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.8.1 | |
| 8 | - * Requires at least: 6.4 | |
| 9 | - * Requires PHP: 7.4 | |
| 7 | + * Version: 4.2.0 | |
| 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,23 +22,8 @@ | ||
| 24 | 22 | |
| 25 | 23 | require_once __DIR__ . '/includes/v2x-compatibility.php'; |
| 26 | 24 | require_once __DIR__ . '/vendor/autoload.php'; |
| 27 | 25 | |
| 28 | -/** | |
| 29 | - * Declare WooCommerce HPOS (custom order tables) compatibility. BetterDocs | |
| 30 | - * never touches order storage, so this is a pure compatibility flag. Must run | |
| 31 | - * on before_woocommerce_init — the Plugin bootstraps on `init`, which is too | |
| 32 | - * late for WooCommerce to read the declaration. | |
| 33 | - */ | |
| 34 | -add_action( 'before_woocommerce_init', function () { | |
| 35 | - if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { | |
| 36 | - \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( | |
| 37 | - 'custom_order_tables', | |
| 38 | - BETTERDOCS_PLUGIN_FILE, | |
| 39 | - true | |
| 40 | - ); | |
| 41 | - } | |
| 42 | -} ); | |
| 43 | 26 | |
| 44 | 27 | /** |
| 45 | 28 | * Initiate the BetterDocs Plugin |
| 46 | 29 | * |
| @@ -47,16 +30,16 @@ | ||
| 47 | 30 | * @return Plugin |
| 48 | 31 | * @since 2.5.0 |
| 49 | 32 | */ |
| 50 | 33 | function betterdocs(): Plugin { |
| 51 | - /** | |
| 52 | - * Remove PRO Functionalities if pro is not updated. | |
| 53 | - */ | |
| 54 | - if ( ! function_exists( 'betterdocs_pro' ) ) { | |
| 55 | - remove_action( 'betterdocs_init', 'run_betterdocs_pro' ); | |
| 56 | - } | |
| 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 | + } | |
| 57 | 40 | |
| 58 | - return Plugin::get_instance(); | |
| 41 | + return Plugin::get_instance(); | |
| 59 | 42 | } |
| 60 | 43 | |
| 61 | 44 | /** |
| 62 | 45 | * Initialize BetterDocs (Free) |