| 1 |
<?php |
| 2 |
|
| 3 |
use Premmerce\Search\SearchPlugin; |
| 4 |
|
| 5 |
/** |
| 6 |
* @package Premmerce\Search |
| 7 |
* |
| 8 |
* @wordpress-plugin |
| 9 |
* Plugin Name: Premmerce Product Search for WooCommerce |
| 10 |
* Plugin URI: https://premmerce.com/woocommerce-product-search/ |
| 11 |
* Description: Premmerce Search makes the WooCommerce product search more flexible and efficient and gives the additional search results due to the spell correction. |
| 12 |
* Version: 2.2 |
| 13 |
* Author: premmerce |
| 14 |
* Author URI: https://premmerce.com |
| 15 |
* License: GPL-2.0+ |
| 16 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 17 |
* Text Domain: premmerce-search |
| 18 |
* Domain Path: /languages |
| 19 |
* |
| 20 |
* WC requires at least: 3.0.0 |
| 21 |
* WC tested up to: 5.5.2 |
| 22 |
* |
| 23 |
*/ |
| 24 |
|
| 25 |
// If this file is called directly, abort. |
| 26 |
if ( ! defined('WPINC')) { |
| 27 |
die; |
| 28 |
} |
| 29 |
|
| 30 |
if ( ! function_exists('premmerce_ps_fs')) { |
| 31 |
|
| 32 |
call_user_func(function () { |
| 33 |
|
| 34 |
require_once plugin_dir_path(__FILE__) . 'vendor/autoload.php'; |
| 35 |
#premmerce_clear |
| 36 |
require_once plugin_dir_path(__FILE__) . '/freemius.php'; |
| 37 |
#/premmerce_clear |
| 38 |
$main = new SearchPlugin(__FILE__); |
| 39 |
|
| 40 |
register_activation_hook(__FILE__, [$main, 'activate']); |
| 41 |
|
| 42 |
premmerce_ps_fs()->add_action('after_uninstall', [SearchPlugin::class, 'uninstall']); |
| 43 |
|
| 44 |
$main->run(); |
| 45 |
}); |
| 46 |
} |