-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblock-for-woo-product-table.php
47 lines (42 loc) · 1.52 KB
/
block-for-woo-product-table.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* The WC Product Table Block Interface.
*
* This file is included during the WordPress bootstrap process if the plugin is active.
*
* @package Barn2/woocommerce-product-table/block
* @author Barn2 Plugins <info@barn2.co.uk>
* @license GPL-3.0
* @copyright Barn2 Media Ltd
*
* @wordpress-plugin
* Plugin Name: Gutenberg Block for WooCommerce Product Table
* Plugin URI: https://barn2.co.uk/wordpress-plugins/block-for-woo-product-table/
* Description: Adds an editor block to the WooCommerce Product Table plugin by Barn2, making it quick and easy to create product tables with the block editor.
* Version: 1.0.11
* Author: Barn2 Plugins
* Author URI: https://barn2.co.uk
* Text Domain: block-for-woo-product-table
* Domain Path: /languages
*
* WC requires at least: 7.2
* WC tested up to: 9.3.3
* Requires at least: 6.1.0
* Requires PHP: 7.4
*
* Copyright: Barn2 Media Ltd
* License: GNU General Public License v3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
namespace Barn2\Plugin\WC_Product_Table_Block;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
const PLUGIN_VERSION = '1.0.11';
const PLUGIN_FILE = __FILE__;
add_action( 'before_woocommerce_init', function() {
if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
}
} );
require_once __DIR__ . '/src/class-plugin.php';