<?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' ) );
