-
Notifications
You must be signed in to change notification settings - Fork 13
/
algolia-woo-indexer.php
48 lines (41 loc) · 1.21 KB
/
algolia-woo-indexer.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
48
<?php
/**
* Plugin Name: Algolia WooCommerce Indexer
* Description: Implement Algolia indexing from WooCommerce
* Text Domain: algolia-woo-indexer
* Author: Daniel Fjeldstad
* Requires at least: 6.0
* Tested up to: 6.2.0
* Requires PHP: 8.1
* WC requires at least: 7.0.0
* WC tested up to: 7.4.0
* Version: 1.0.7
*
* @package algolia-woo-indexer
* @license GNU version 3
*/
/**
* Abort if this file is called directly
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Main class file
*/
require_once plugin_dir_path( __FILE__ ) . '/classes/class-algolia-woo-indexer.php';
/**
* Class for checking plugin requirements
*/
require_once plugin_dir_path( __FILE__ ) . '/classes/class-check-requirements.php';
/**
* Class for verifying nonces
*/
require_once plugin_dir_path( __FILE__ ) . '/classes/class-verify-nonces.php';
/**
* Class for sending products
*/
require_once plugin_dir_path( __FILE__ ) . '/classes/class-send-products.php';
$algowooindexer = \Algowoo\Algolia_Woo_Indexer::get_instance();
register_activation_hook( __FILE__, array( $algowooindexer, 'activate_plugin' ) );
register_deactivation_hook( __FILE__, array( $algowooindexer, 'deactivate_plugin' ) );