-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchoose-your-best-selling-products.php
39 lines (34 loc) · 1.13 KB
/
choose-your-best-selling-products.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
<?php
/**
* Choose Your Best Selling Products Plugin
*
* @package cbsp
* @author Veeraj Yadav
*
* Plugin Name: Choose Your Best Selling Products
* Description: A WordPress plugin to display top selling products with flexible settings for manual or automated product selection.
* Version: 1.0.1
* Requires at least: 5.2
* Requires PHP: 7.2
* Author: Veeraj Yadav
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: cbsp
* Requires Plugins: woocommerce
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Include Composer's autoloader if available.
if ( file_exists( plugin_dir_path( __FILE__ ) . 'vendor/autoload.php' ) ) {
require plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
}
use CBSP\CbspPlugin;
// Initialize the plugin.
if ( class_exists( 'CBSP\CbspPlugin' ) ) {
$cbsp_plugin = new CbspPlugin();
}
// Hook into activation and deactivation.
register_activation_hook( __FILE__, array( $cbsp_plugin, 'activate' ) );
register_deactivation_hook( __FILE__, array( $cbsp_plugin, 'deactivate' ) );